語言

PackageInfo.RequestedPermissionOnlyForLocationButton 欄位

定義

警告

This constant will be removed in the future version. Use Android.Content.PM.RequestedPermission enum directly instead of this field.

標記 #requestedPermissionsFlags:僅適用於 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

欄位值

Value = 131072

實作

屬性

備註

請求權限標記:只適用於Manifest.permission.ACCESS_FINE_LOCATION。 當此標誌被設定時,應用程式無法透過 Activity.requestPermissions(String[],int)請求該權限,只能暫時使用位置按鈕取得該權限。

Android 參考資料。android.content.pm.PackageInfo.REQUESTED_PERMISSION_ONLY_FOR_LOCATION_BUTTON

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於