AndroidJNIHelper.GetConstructorID 获取构造函数ID
static function GetConstructorID (javaClass : IntPtr, signature : string = "") : IntPtr
Parameters参数
-
javaClassRaw JNI Java class object (obtained by calling AndroidJNI.FindClass).
原始JNI Java类对象。(通过调用AndroidJNI.FindClass) -
signatureConstructor method signature (e.g. obtained by calling AndroidJNIHelper.GetSignature).
构造函数的方法签名(例如,通过调用AndroidJNIHelper.GetSignature)
Description描述
Scans a particular Java class for a constructor method matching a signature.
扫描一个特定的Java类,用于一个构造方法匹配的签名。
The signature comparison is done to allow for sub-/base-classes of the class types. If no signature is provided the first constuctor found will be returned.
签名比较是为了类的类型的sub-/base-classes。如果没有提供签名,首次构造发现将被返回。
参见: AndroidJNIHelper.GetSignature, AndroidJNIHelper.GetMethodID, AndroidJNIHelper.GetFieldID
• static function GetConstructorID (jclass : System.IntPtr, args : object[]) : System.IntPtr
Parameters参数
-
javaClassRaw JNI Java class object (obtained by calling AndroidJNI.FindClass).
原始JNI Java类对象。(通过调用AndroidJNI.FindClass) -
argsArray with parameters to be passed to the constructor when invoked.
当调用时,带有参数的阵列传递到构造函数
Description描述
Get a JNI method ID for a constructor based on calling arguments.
获取一个JNI方法ID,用于一个根据调用参数的构造函数。
Scans a particular Java class for a constructor method matching a signature based on passed arguments. The signature comparison is done to allow for sub-/base-classes of the class types.
扫描一个特定的Java类,用于一个构造方法匹配的签名,根据传递参数。签名比较是为了类的类型的sub-/base-classes。