Version: 2017.1
public static IntPtr GetMethodID (IntPtr javaClass, string methodName, string signature= "", bool isStatic= false);

파라미터

javaClass Raw JNI Java class object (obtained by calling AndroidJNI.FindClass).
methodName Name of the method as declared in Java.
signature Method signature (e.g. obtained by calling AndroidJNIHelper.GetSignature).
isStatic Set to true for static methods; false for instance (nonstatic) methods.

설명

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

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.

See Also: AndroidJNIHelper.GetSignature, AndroidJNIHelper.GetConstructorID, AndroidJNIHelper.GetFieldID.


public static IntPtr GetMethodID (IntPtr jclass, string methodName, object[] args, bool isStatic);

파라미터

javaClass Raw JNI Java class object (obtained by calling AndroidJNI.FindClass).
methodName Name of the method as declared in Java.
args Array with parameters to be passed to the method when invoked.
isStatic Set to true for static methods; false for instance (nonstatic) methods.

설명

Get a JNI method ID based on calling arguments.

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.


public static IntPtr GetMethodID (IntPtr jclass, string methodName, object[] args, bool isStatic);

파라미터

javaClass Raw JNI Java class object (obtained by calling AndroidJNI.FindClass).
methodName Name of the method as declared in Java.
args Array with parameters to be passed to the method when invoked.
isStatic Set to true for static methods; false for instance (nonstatic) methods.

설명

Get a JNI method ID based on calling arguments.

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.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961