AndroidJNI.AllocObject 分配对象


static function AllocObject (clazz : IntPtr) : IntPtr

Description描述

Allocates a new Java object without invoking any of the constructors for the object.

分配新 Java 对象而不调用该对象的任何构造函数。返回该对象的引用。

clazz 参数务必不要引用数组类。

参见: Java Native Interface Specification (Oracle)


,