Share via


UserManager.DisallowCellular2g Field

Definition

Specifies if a user is not allowed to use 2g networks.

[Android.Runtime.Register("DISALLOW_CELLULAR_2G", ApiSince=34)]
public const string DisallowCellular2g;
[<Android.Runtime.Register("DISALLOW_CELLULAR_2G", ApiSince=34)>]
val mutable DisallowCellular2g : string

Field Value

Attributes

Remarks

Specifies if a user is not allowed to use 2g networks.

This restriction can only be set by a device owner or a profile owner of an organization-owned managed profile on the parent profile. In all cases, the setting applies globally on the device and will prevent the device from scanning for or connecting to 2g networks, except in the case of an emergency.

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

The default value is false.

Java documentation for android.os.UserManager.DISALLOW_CELLULAR_2G.

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