Android.App.Admin.DeviceAdminReceiver.OnLockTaskModeEntering Method
Called when a device is entering lock task mode by a package authorized by DevicePolicyManager.IsLockTaskPermitted(string)

Syntax

[Android.Runtime.Register("onLockTaskModeEntering", "(Landroid/content/Context;Landroid/content/Intent;Ljava/lang/String;)V", "GetOnLockTaskModeEntering_Landroid_content_Context_Landroid_content_Intent_Ljava_lang_String_Handler")]
public virtual void OnLockTaskModeEntering (Android.Content.Context context, Android.Content.Intent intent, string pkg)

Parameters

context
The running context as per DeviceAdminReceiver.OnReceive(Android.Content.Context, Android.Content.Intent).
intent
The received intent as per DeviceAdminReceiver.OnReceive(Android.Content.Context, Android.Content.Intent).
pkg
If entering, the authorized package using lock task mode, otherwise null.

Remarks

Called when a device is entering lock task mode by a package authorized by DevicePolicyManager.IsLockTaskPermitted(string)

[Android Documentation]

Requirements

Namespace: Android.App.Admin
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8