Partager via


CarrierConfigManager.KeyHideEnable2g Field

Definition

Allow whether the user can use the "Allow 2G" toggle in Settings.

[Android.Runtime.Register("KEY_HIDE_ENABLE_2G", ApiSince=31)]
public const string KeyHideEnable2g;
[<Android.Runtime.Register("KEY_HIDE_ENABLE_2G", ApiSince=31)>]
val mutable KeyHideEnable2g : string

Field Value

Attributes

Remarks

Allow whether the user can use the "Allow 2G" toggle in Settings.

If true then the toggle is disabled (i.e. grayed out).

Used to trade privacy/security against potentially reduced carrier coverage for some carriers.

This member is deprecated. Future versions of Android will disallow carriers from hiding this toggle because disabling 2g is a security feature that users should always have access to at their discretion.

Java documentation for android.telephony.CarrierConfigManager.KEY_HIDE_ENABLE_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