JniValueMarshalerState Constructors
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 |
|---|---|
| JniValueMarshalerState(IJavaPeerable, Object) |
Creates marshaler state from a managed peer and its JNI reference. |
| JniValueMarshalerState(JniArgumentValue, Object) |
Creates marshaler state from an argument without an object reference or managed peer. |
| JniValueMarshalerState(JniObjectReference, Object) |
Creates marshaler state from a JNI reference and its handle as an argument. |
JniValueMarshalerState(IJavaPeerable, Object)
Creates marshaler state from a managed peer and its JNI reference.
public JniValueMarshalerState(Java.Interop.IJavaPeerable? peerableValue, object? extra = default);
new Java.Interop.JniValueMarshalerState : Java.Interop.IJavaPeerable * obj -> Java.Interop.JniValueMarshalerState
Parameters
- peerableValue
- IJavaPeerable
The managed peer to retain, or null for a null Java reference.
- extra
- Object
Additional state for the marshaler to retain, or null.
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
JniValueMarshalerState(JniArgumentValue, Object)
Creates marshaler state from an argument without an object reference or managed peer.
public JniValueMarshalerState(Java.Interop.JniArgumentValue jniArgumentValue, object? extra = default);
new Java.Interop.JniValueMarshalerState : Java.Interop.JniArgumentValue * obj -> Java.Interop.JniValueMarshalerState
Parameters
- jniArgumentValue
- JniArgumentValue
The JNI argument value to store.
- extra
- Object
Additional state for the marshaler to retain, or null.
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
JniValueMarshalerState(JniObjectReference, Object)
Creates marshaler state from a JNI reference and its handle as an argument.
public JniValueMarshalerState(Java.Interop.JniObjectReference referenceValue, object? extra = default);
new Java.Interop.JniValueMarshalerState : Java.Interop.JniObjectReference * obj -> Java.Interop.JniValueMarshalerState
Parameters
- referenceValue
- JniObjectReference
The JNI reference to store without creating or disposing a reference.
- extra
- Object
Additional state for the marshaler to retain, or null.
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.