AndroidJavaClass.AndroidJavaClass 构造安卓Java类

static function AndroidJavaClass (className : string) : AndroidJavaClass

Parameters参数

Description描述

Construct an AndroidJavaClass from the class name

基于类名className,构造一个AndroidJavaClass。

This essentially means locate the class type and allocate a java.lang.Class object of that particular type.

这实际上意味着查找类的类型,并分配一个特定类型的java.lang.Class对象。

// Try to collect som Java garbage..

//尝试搜集som的Java垃圾



function Start() {

	var jc = new AndroidJavaClass("java.lang.System");

	jc.CallStatic("gc");

}
// Retrieve the manufacturer of the product/hardware.

//检索该产品/硬件的制造商



function Start() {

	var jc = new AndroidJavaClass("android.os.Build");

	var manufacturer = jc.Get.<string>("MANUFACTURER");

}
Page last updated: 2012-7-24