Aracılığıyla paylaş


UserManager.DisallowWifiDirect Field

Definition

Specifies if a user is disallowed from using Wi-Fi Direct.

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

Field Value

Attributes

Remarks

Specifies if a user is disallowed from using Wi-Fi Direct.

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 using Wi-Fi Direct.

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

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