JniEnvironment.Types.RegisterNatives Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- type
- JniObjectReference
- methods
- JniNativeMethodRegistration[]
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
- type
- JniObjectReference
- methods
- ReadOnlySpan<JniNativeMethod>
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
- type
- JniObjectReference
- methods
- JniNativeMethodRegistration[]
- 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.