AndroidJNIHelper.GetMethodID 获取方法ID

static function GetMethodID (javaClass : IntPtr, methodName : string, signature : string = "", isStatic : bool = false) : IntPtr

Parameters参数

Description描述

Scans a particular Java class for a method matching a name and a signature.

扫描一个特定的Java类,用于一个方法匹配一个名字和一个签名。

The signature comparison is done to allow sub-/base-classes of a class types. If no signature is provided the first method with the correct name will be returned.

签名比较是为了允许类的类型的 sub-/base-classes。如果没有提供

签名,具有正确的名称的首个方法将被返回。

参见: AndroidJNIHelper.GetSignature, AndroidJNIHelper.GetConstructorID, AndroidJNIHelper.GetFieldID

• static function GetMethodID (jclass : System.IntPtr, methodName : string, args : object[], isStatic : bool) : System.IntPtr

Parameters参数

Description描述

Get a JNI method ID based on calling arguments.

获取一个JNI方法ID,根据调用参数。

Generic parameter represents the method return type, and the regular method assumes 'void' return type. Scans a particular Java class for a method matching a signature based on passed arguments. The signature comparison is done to allow for sub-/base-classes of the class types.

泛型参数表示该方法的返回类型,和常规方法假设为void返回类型。扫描一个特定Java类用于一个方法匹配一个签名,根据传递的参数。签名比较是为了允许类的类型的sub-/base-classes。

Page last updated: 2011-4-9