JNIEnv.GetMethodID(IntPtr, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Looks up an instance method or constructor by name and JNI signature.
public static IntPtr GetMethodID(IntPtr kls, string name, string signature);
static member GetMethodID : nativeint * string * string -> nativeint
Parameters
- kls
-
IntPtr
nativeint
A live JNI class or interface reference from the current VM, usable on the calling thread.
- name
- String
The Java method name, or <init> for a constructor.
- signature
- String
The JNI method descriptor. For a constructor, use V as its return type.
Returns
nativeint
The JNI method ID. Keep its declaring class live while using the ID.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.