Freigeben über


UserManager.DisallowAirplaneMode Field

Definition

Specifies if airplane mode is disallowed on the device.

[Android.Runtime.Register("DISALLOW_AIRPLANE_MODE", ApiSince=28)]
public const string DisallowAirplaneMode;
[<Android.Runtime.Register("DISALLOW_AIRPLANE_MODE", ApiSince=28)>]
val mutable DisallowAirplaneMode : string

Field Value

Attributes

Remarks

Specifies if airplane mode is disallowed on the device.

This restriction can only be set by a device owner, a profile owner on the primary user or a profile owner of an organization-owned managed profile on the parent profile. When it is set by any of these owners, it applies globally - i.e., it disables airplane mode on the entire device.

Holders of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_AIRPLANE_MODE can set this restriction using the DevicePolicyManager APIs mentioned below.

The default value is false.

Key for user restrictions.

Type: Boolean

Java documentation for android.os.UserManager.DISALLOW_AIRPLANE_MODE.

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