DevicePolicyManager.IsLockTaskPermitted(string)
Action sent to a device administrator to notify that the device is entering lock task mode from an authorized package. The extra DeviceAdminReceiver.ExtraLockTaskPackage will describe the authorized package using lock task mode.
[Android Documentation]