DeviceAdminReceiver.OnDisabled(Context, Intent) 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 prior to the administrator being disabled, as a result of
receiving #ACTION_DEVICE_ADMIN_DISABLED
.
[Android.Runtime.Register("onDisabled", "(Landroid/content/Context;Landroid/content/Intent;)V", "GetOnDisabled_Landroid_content_Context_Landroid_content_Intent_Handler")]
public virtual void OnDisabled (Android.Content.Context context, Android.Content.Intent intent);
[<Android.Runtime.Register("onDisabled", "(Landroid/content/Context;Landroid/content/Intent;)V", "GetOnDisabled_Landroid_content_Context_Landroid_content_Intent_Handler")>]
abstract member OnDisabled : Android.Content.Context * Android.Content.Intent -> unit
override this.OnDisabled : 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 prior to the administrator being disabled, as a result of receiving #ACTION_DEVICE_ADMIN_DISABLED
. Upon return, you can no longer use the protected parts of the DevicePolicyManager
API.
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.