Udostępnij za pośrednictwem


DevicePolicyManager.LockTaskFeatureHome Field

Definition

Caution

This constant will be removed in the future version. Use Android.App.Admin.LockTaskFeatures enum directly instead of this field.

Enable the Home button during LockTask mode.

[Android.Runtime.Register("LOCK_TASK_FEATURE_HOME", ApiSince=28)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.Admin.LockTaskFeatures enum directly instead of this field.", true)]
public const Android.App.Admin.LockTaskFeatures LockTaskFeatureHome = 4;
[<Android.Runtime.Register("LOCK_TASK_FEATURE_HOME", ApiSince=28)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.Admin.LockTaskFeatures enum directly instead of this field.", true)>]
val mutable LockTaskFeatureHome : Android.App.Admin.LockTaskFeatures

Field Value

Value = 4
Attributes

Remarks

Enable the Home button during LockTask mode. Note that if a custom launcher is used, it has to be registered as the default launcher with #addPersistentPreferredActivity(ComponentName, IntentFilter, ComponentName), and its package needs to be allowlisted for LockTask with #setLockTaskPackages(ComponentName, String[]).

Java documentation for android.app.admin.DevicePolicyManager.LOCK_TASK_FEATURE_HOME.

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.

Applies to