Compartir a través de


UserManager.DisallowChangeWifiState Field

Definition

Specifies if a user is disallowed from enabling/disabling Wi-Fi.

[Android.Runtime.Register("DISALLOW_CHANGE_WIFI_STATE", ApiSince=33)]
public const string DisallowChangeWifiState;
[<Android.Runtime.Register("DISALLOW_CHANGE_WIFI_STATE", ApiSince=33)>]
val mutable DisallowChangeWifiState : string

Field Value

Attributes

Remarks

Specifies if a user is disallowed from enabling/disabling Wi-Fi.

This restriction can only be set by a device owner, 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 from changing Wi-Fi state.

Holders of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_WIFI 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_CHANGE_WIFI_STATE.

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