Language

JniRuntime.JniMarshalMemberBuilder Class

Definition

Caution

JniMarshalMemberBuilder is no longer supported. This class will be removed in a future release.

Provides marshal-member-building methods and extension hooks. This API is obsolete in .NET 11 for Android.

[System.Obsolete("JniMarshalMemberBuilder is no longer supported. This class will be removed in a future release.")]
public abstract class JniRuntime.JniMarshalMemberBuilder : IDisposable
[<System.Obsolete("JniMarshalMemberBuilder is no longer supported. This class will be removed in a future release.")>]
type JniRuntime.JniMarshalMemberBuilder = class
    interface IDisposable
    interface JniRuntime.ISetRuntime
Inheritance
JniRuntime.JniMarshalMemberBuilder
Attributes
Implements

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.

Constructors

Name Description
JniRuntime.JniMarshalMemberBuilder()

Initializes the legacy builder base class.

Properties

Name Description
Runtime

Gets the runtime assigned to the legacy builder.

Methods

Name Description
CreateConstructActivationPeerExpression(ConstructorInfo)

Declares the legacy hook for building a managed peer activation expression.

CreateConstructActivationPeerFunc(ConstructorInfo)

Compiles an activation expression in .NET 9 and .NET 10 for Android. In .NET 11 for Android, throws NotSupportedException.

CreateMarshalToManagedDelegate(Delegate)

Compiles a marshaling expression in .NET 9 and .NET 10 for Android. In .NET 11 for Android, throws NotSupportedException.

CreateMarshalToManagedExpression(MethodInfo)

Declares the legacy hook for building a managed callback expression.

Dispose()

Calls the legacy disposal hook with disposing set to false.

Dispose(Boolean)

Marks the builder as disposed.

GetExportedMemberRegistrations(Type)

Declares the legacy hook for obtaining exported native method registrations.

GetJniMethodSignature(MethodBase)

Builds a JNI method signature in .NET 9 and .NET 10 for Android. In .NET 11 for Android, throws NotSupportedException.

GetParameterMarshaler(ParameterInfo)

Selects a value marshaler in .NET 9 and .NET 10 for Android. In .NET 11 for Android, throws NotSupportedException.

IsDirectMethod(ParameterInfo[])

Tests whether the first two parameter types are both IntPtr.

OnSetRuntime(JniRuntime)

Associates the legacy builder with a runtime, rejecting an already disposed builder.

Applies to