UserManager.DisallowConfigLocation Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies if a user is disallowed from enabling or disabling location providers.
[Android.Runtime.Register("DISALLOW_CONFIG_LOCATION", ApiSince=28)]
public const string DisallowConfigLocation;
[<Android.Runtime.Register("DISALLOW_CONFIG_LOCATION", ApiSince=28)>]
val mutable DisallowConfigLocation : string
Field Value
- Attributes
Remarks
Specifies if a user is disallowed from enabling or disabling location providers. As a result, user is disallowed from turning on or off location via Settings.
A device owner and a profile owner can set this restriction. When it is set by a device owner, a profile owner on the primary user or by a profile owner of an organization-owned managed profile on the parent profile, it disallows the primary user from turning location on or off.
Holders of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_LOCATION
can set this restriction using the DevicePolicyManager APIs mentioned below.
The default value is false
.
This user restriction is different from #DISALLOW_SHARE_LOCATION
, as a device owner or a profile owner can still enable or disable location mode via DevicePolicyManager#setLocationEnabled
when this restriction is on.
Key for user restrictions.
Type: Boolean
Java documentation for android.os.UserManager.DISALLOW_CONFIG_LOCATION
.
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.