Język

JniEnvironment.StaticMethods.GetStaticMethodID Method

Definition

Overloads

Name Description
GetStaticMethodID(JniObjectReference, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Looks up a JNI static method ID using null-terminated UTF-8 name and signature spans. Use with "methodName"u8 literals to avoid string marshalling overhead.

GetStaticMethodID(JniObjectReference, String, String)

GetStaticMethodID(JniObjectReference, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Looks up a JNI static method ID using null-terminated UTF-8 name and signature spans. Use with "methodName"u8 literals to avoid string marshalling overhead.

public static Java.Interop.JniMethodInfo GetStaticMethodID(Java.Interop.JniObjectReference type, ReadOnlySpan<byte> name, ReadOnlySpan<byte> signature);
static member GetStaticMethodID : Java.Interop.JniObjectReference * ReadOnlySpan<byte> * ReadOnlySpan<byte> -> Java.Interop.JniMethodInfo

Parameters

signature
ReadOnlySpan<Byte>

Returns

Applies to

GetStaticMethodID(JniObjectReference, String, String)

public static Java.Interop.JniMethodInfo GetStaticMethodID(Java.Interop.JniObjectReference type, string name, string signature);
static member GetStaticMethodID : Java.Interop.JniObjectReference * string * string -> Java.Interop.JniMethodInfo

Parameters

name
String
signature
String

Returns

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