共用方式為


DevicePolicyManager.LockTaskFeatureGlobalActions 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 global actions dialog during LockTask mode.

[Android.Runtime.Register("LOCK_TASK_FEATURE_GLOBAL_ACTIONS", 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 LockTaskFeatureGlobalActions = 16;
[<Android.Runtime.Register("LOCK_TASK_FEATURE_GLOBAL_ACTIONS", 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 LockTaskFeatureGlobalActions : Android.App.Admin.LockTaskFeatures

Field Value

Value = 16
Attributes

Remarks

Enable the global actions dialog during LockTask mode. This is the dialog that shows up when the user long-presses the power button, for example. Note that the user may not be able to power off the device if this flag is not set.

This flag is enabled by default until #setLockTaskFeatures(ComponentName, int) is called for the first time.

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

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