Language

JniType.GetStaticMethod Method

Definition

Overloads

Name Description
GetStaticMethod(String, String)

Looks up a static-method identifier for this Java class.

GetStaticMethod(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Looks up a static-method identifier for this Java class.

GetStaticMethod(String, String)

Looks up a static-method identifier for this Java class.

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

Parameters

name
String

The Java method name.

signature
String

The JNI method descriptor.

Returns

The JNI static-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

GetStaticMethod(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Looks up a static-method identifier for this Java class.

public Java.Interop.JniMethodInfo GetStaticMethod(ReadOnlySpan<byte> name, ReadOnlySpan<byte> signature);
member this.GetStaticMethod : 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 static-method information.

Remarks

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

Applies to