Language

JavaObject Constructors

Definition

Overloads

Name Description
JavaObject()

Initializes a managed peer and creates a Java peer when no valid peer reference is already present.

JavaObject(JniObjectReference, JniObjectReferenceOptions)

Initializes a managed object peer through the runtime's construction policy.

JavaObject()

Initializes a managed peer and creates a Java peer when no valid peer reference is already present.

[Java.Interop.JniConstructorSignature("()V")]
public JavaObject();
Attributes

Remarks

When no valid peer reference is present, this constructor invokes the no-argument Java constructor for the managed type.

Java reference for java.lang.Object.Object.

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

JavaObject(JniObjectReference, JniObjectReferenceOptions)

Initializes a managed object peer through the runtime's construction policy.

public JavaObject(ref Java.Interop.JniObjectReference reference, Java.Interop.JniObjectReferenceOptions options);
new Java.Interop.JavaObject : JniObjectReference * Java.Interop.JniObjectReferenceOptions -> Java.Interop.JavaObject

Parameters

reference
JniObjectReference

The source JNI peer reference.

options
JniObjectReferenceOptions

Reference-transfer and peer-registration options passed to the runtime.

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