Language

PolicyUpdateReceiver Constructors

Definition

Overloads

Name Description
PolicyUpdateReceiver()

Initializes a new instance of the PolicyUpdateReceiver class.

PolicyUpdateReceiver(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

PolicyUpdateReceiver()

Initializes a new instance of the PolicyUpdateReceiver class.

[Android.Runtime.Register(".ctor", "()V", "", ApiSince=34)]
public PolicyUpdateReceiver();
Attributes

Remarks

Subclass PolicyUpdateReceiver to receive the results of policy changes. The system calls the callbacks on the main thread. The receiver must require the android.permission.BIND_DEVICE_ADMIN permission.

Applies to

PolicyUpdateReceiver(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

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

Parameters

javaReference
IntPtr

nativeint

A JNI reference to the Java object.

transfer
JniHandleOwnership

Specifies whether ownership of the JNI reference transfers to this instance.

Remarks

The runtime calls this constructor to create a managed representation of an existing Java object.

Applies to