Android Guides | Samples

Java.Lang.Object Constructor

A constructor used when creating managed representations of JNI objects; called by the runtime.

Syntax

public Object (IntPtr handle, JniHandleOwnership transfer)

Parameters

handle
A IntPtrcontaining a Java Native Interface (JNI) object reference.
transfer
A JniHandleOwnershipindicating how to handle handle

Remarks

This constructor is invoked by the runtime infrastructure (Object.GetObject<T,U>(IntPtr,JniHandleOwnership)) to create a new managed representation for a Java Native Interface object.

The constructor will initializes the IJavaObject.Handle property of the new instance using handle and transfer.

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1