Language

AppOpsManager(IntPtr, JniHandleOwnership) Constructor

Definition

Initializes a managed representation of an existing Java Native Interface object.

protected AppOpsManager(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.AppOpsManager : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.AppOpsManager

Parameters

javaReference
IntPtr

nativeint

The Java Native Interface object reference.

transfer
JniHandleOwnership

Specifies how to release the incoming JNI reference and whether to register the managed peer. The peer creates its own JNI reference.

Remarks

This constructor is called by the .NET for Android binding runtime when it creates a managed peer for an existing Java 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