Language

JniRuntime.JniTypeManager.RegisterNativeMembers Method

Definition

Overloads

Name Description
RegisterNativeMembers(JniType, Type, ReadOnlySpan<Char>)

Provides the native-member registration extension point.

RegisterNativeMembers(JniType, Type, String)
Obsolete.

Provides the obsolete string-based native registration extension point.

RegisterNativeMembers(JniType, Type, ReadOnlySpan<Char>)

Provides the native-member registration extension point.

public virtual void RegisterNativeMembers(Java.Interop.JniType nativeClass, Type type, ReadOnlySpan<char> methods);
abstract member RegisterNativeMembers : Java.Interop.JniType * Type * ReadOnlySpan<char> -> unit
override this.RegisterNativeMembers : Java.Interop.JniType * Type * ReadOnlySpan<char> -> unit

Parameters

nativeClass
JniType

The Java class whose native methods are to be registered.

type
Type

The managed type that supplies registration metadata.

methods
ReadOnlySpan<Char>

The method-description span for an overriding implementation.

Remarks

The modern base implementation does nothing; derived managers supply registration behavior.

Applies to

RegisterNativeMembers(JniType, Type, String)

Caution

Use RegisterNativeMembers(JniType, Type, ReadOnlySpan<char>)

Provides the obsolete string-based native registration extension point.

[System.Obsolete("Use RegisterNativeMembers(JniType, Type, ReadOnlySpan<char>)")]
public virtual void RegisterNativeMembers(Java.Interop.JniType nativeClass, Type type, string? methods);
[<System.Obsolete("Use RegisterNativeMembers(JniType, Type, ReadOnlySpan<char>)")>]
abstract member RegisterNativeMembers : Java.Interop.JniType * Type * string -> unit
override this.RegisterNativeMembers : Java.Interop.JniType * Type * string -> unit

Parameters

nativeClass
JniType

The Java class whose native methods are to be registered.

type
Type

The managed type that supplies registration metadata.

methods
String

The optional method description for an overriding implementation.

Attributes

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