PackageInfo.RequestedPermissionOnlyForLocationButton 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.
Caution
This constant will be removed in the future version. Use Android.Content.PM.RequestedPermission enum directly instead of this field.
Flag for #requestedPermissionsFlags: It only applies to android.Manifest.permission#ACCESS_FINE_LOCATION.
[Android.Runtime.Register("REQUESTED_PERMISSION_ONLY_FOR_LOCATION_BUTTON", ApiSince=37)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Content.PM.RequestedPermission enum directly instead of this field.", true)]
public const Android.Content.PM.RequestedPermission RequestedPermissionOnlyForLocationButton = 131072;
[<Android.Runtime.Register("REQUESTED_PERMISSION_ONLY_FOR_LOCATION_BUTTON", ApiSince=37)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.PM.RequestedPermission enum directly instead of this field.", true)>]
val mutable RequestedPermissionOnlyForLocationButton : Android.Content.PM.RequestedPermission
Field Value
Value = 131072Implements
- Attributes
Remarks
Flag for requestedPermissionsFlags: It only applies to Manifest.permission.ACCESS_FINE_LOCATION. When this flag is set, apps cannot request that permission through Activity.requestPermissions(String[],int), and can only use location button to obtain it temporarily.
Android reference for android.content.pm.PackageInfo.REQUESTED_PERMISSION_ONLY_FOR_LOCATION_BUTTON.
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.