Share via


UserManager.DisallowWifiTethering Field

Definition

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

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

Field Value

Attributes

Remarks

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

This restriction does not limit the user's ability to modify or connect to regular Wi-Fi networks, which is separately controlled by #DISALLOW_CONFIG_WIFI.

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 tethering. Other forms of tethering are not affected.

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

This user restriction disables only Wi-Fi tethering. Use #DISALLOW_CONFIG_TETHERING to limit all forms of tethering. When #DISALLOW_CONFIG_TETHERING is set, this user restriction becomes obsolete.

The default value is false.

Key for user restrictions.

Type: Boolean

Java documentation for android.os.UserManager.DISALLOW_WIFI_TETHERING.

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