Sdílet prostřednictvím


DeviceAdminInfo.HeadlessDeviceOwnerModeSingleUser Field

Definition

Caution

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

Value for #getHeadlessDeviceOwnerMode which indicates that this DPC should be provisioned into the first secondary user when on a Headless System User Mode device.

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

Field Value

Value = 2

Implements

Attributes

Remarks

Value for #getHeadlessDeviceOwnerMode which indicates that this DPC should be provisioned into the first secondary user when on a Headless System User Mode device.

This mode only allows a single secondary user on the device blocking the creation of additional secondary users.

Starting from Android version android.os.Build.VERSION_CODES#VANILLA_ICE_CREAM, DPCs should set the value of attribute "headless-device-owner-mode" inside the "headless-system-user" tag as "single_user".

Java documentation for android.app.admin.DeviceAdminInfo.HEADLESS_DEVICE_OWNER_MODE_SINGLE_USER.

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