DeviceAdminReceiver.OnComplianceAcknowledgementRequired Method
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.
Called to notify a profile owner of an organization-owned device that it needs to acknowledge device compliance to allow the user to turn the profile off if needed according to the maximum profile time off policy.
[Android.Runtime.Register("onComplianceAcknowledgementRequired", "(Landroid/content/Context;Landroid/content/Intent;)V", "GetOnComplianceAcknowledgementRequired_Landroid_content_Context_Landroid_content_Intent_Handler", ApiSince=31)]
public virtual void OnComplianceAcknowledgementRequired (Android.Content.Context context, Android.Content.Intent intent);
[<Android.Runtime.Register("onComplianceAcknowledgementRequired", "(Landroid/content/Context;Landroid/content/Intent;)V", "GetOnComplianceAcknowledgementRequired_Landroid_content_Context_Landroid_content_Intent_Handler", ApiSince=31)>]
abstract member OnComplianceAcknowledgementRequired : Android.Content.Context * Android.Content.Intent -> unit
override this.OnComplianceAcknowledgementRequired : Android.Content.Context * Android.Content.Intent -> unit
Parameters
- context
- Context
the running context as per #onReceive
- intent
- Intent
The received intent as per #onReceive
.
- Attributes
Remarks
Called to notify a profile owner of an organization-owned device that it needs to acknowledge device compliance to allow the user to turn the profile off if needed according to the maximum profile time off policy.
Default implementation acknowledges compliance immediately. DPC may prefer to override this implementation to delay acknowledgement until a successful policy sync. Until compliance is acknowledged the user is still free to turn the profile off, but the timer won't be reset, so personal apps will be suspended sooner. This callback is delivered using a foreground broadcast and should be handled quickly.
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.