Sprache

JniEnvironment.Types.RegisterNatives Method

Definition

Overloads

Name Description
RegisterNatives(JniObjectReference, JniNativeMethodRegistration[])
RegisterNatives(JniObjectReference, ReadOnlySpan<JniNativeMethod>)

Registers JNI native methods using blittable JniNativeMethod structs with raw function pointers and UTF-8 name/signature pointers. Calls the JNI RegisterNatives function directly without delegate marshaling.

RegisterNatives(JniObjectReference, JniNativeMethodRegistration[], Int32)

RegisterNatives(JniObjectReference, JniNativeMethodRegistration[])

public static void RegisterNatives(Java.Interop.JniObjectReference type, Java.Interop.JniNativeMethodRegistration[] methods);
static member RegisterNatives : Java.Interop.JniObjectReference * Java.Interop.JniNativeMethodRegistration[] -> unit

Parameters

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

RegisterNatives(JniObjectReference, ReadOnlySpan<JniNativeMethod>)

Registers JNI native methods using blittable JniNativeMethod structs with raw function pointers and UTF-8 name/signature pointers. Calls the JNI RegisterNatives function directly without delegate marshaling.

public static void RegisterNatives(Java.Interop.JniObjectReference type, ReadOnlySpan<Java.Interop.JniNativeMethod> methods);
static member RegisterNatives : Java.Interop.JniObjectReference * ReadOnlySpan<Java.Interop.JniNativeMethod> -> unit

Parameters

Applies to

RegisterNatives(JniObjectReference, JniNativeMethodRegistration[], Int32)

public static void RegisterNatives(Java.Interop.JniObjectReference type, Java.Interop.JniNativeMethodRegistration[] methods, int numMethods);
static member RegisterNatives : Java.Interop.JniObjectReference * Java.Interop.JniNativeMethodRegistration[] * int -> unit

Parameters

numMethods
Int32

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