Language

JNIEnv.GetMethodID(IntPtr, String, String) Method

Definition

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

IntPtr

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.

Applies to