Dela via


UserManager.DisallowAddWifiConfig Field

Definition

Specifies if a user is disallowed from adding a new Wi-Fi configuration.

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

Field Value

Attributes

Remarks

Specifies if a user is disallowed from adding a new Wi-Fi configuration.

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 prevents all users from adding a new Wi-Fi configuration. This does not limit the owner and carrier's ability to add a new configuration.

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_ADD_WIFI_CONFIG.

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