Language

JniType.GetInstanceMethod Method

Definition

Overloads

Name Description
GetInstanceMethod(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Looks up an instance-method identifier for this Java class.

GetInstanceMethod(String, String)

Looks up an instance-method identifier for this Java class.

GetInstanceMethod(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Looks up an instance-method identifier for this Java class.

public Java.Interop.JniMethodInfo GetInstanceMethod(ReadOnlySpan<byte> name, ReadOnlySpan<byte> signature);
member this.GetInstanceMethod : ReadOnlySpan<byte> * ReadOnlySpan<byte> -> Java.Interop.JniMethodInfo

Parameters

name
ReadOnlySpan<Byte>

The JNI method-name bytes, with a null terminator available to native code.

signature
ReadOnlySpan<Byte>

The JNI method descriptor bytes, with a null terminator available to native code.

Returns

The JNI instance-method information.

Remarks

JNI reads the name and descriptor as null-terminated strings. No managed string conversion is performed.

Applies to

GetInstanceMethod(String, String)

Looks up an instance-method identifier for this Java class.

public Java.Interop.JniMethodInfo GetInstanceMethod(string name, string signature);
member this.GetInstanceMethod : string * string -> Java.Interop.JniMethodInfo

Parameters

name
String

The Java method name.

signature
String

The JNI method descriptor.

Returns

The JNI instance-method information.

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