語言

PackageInstaller.SessionParams.PermissionStateGranted 欄位

定義

警告

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

安裝程式會傳遞 值 #setPermissionState(String, int) 來設定權限的狀態。

[Android.Runtime.Register("PERMISSION_STATE_GRANTED", ApiSince=34)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Content.PM.PackageInstallerPermissionState enum directly instead of this field.", true)]
public const Android.Content.PM.PackageInstallerPermissionState PermissionStateGranted = 1;
[<Android.Runtime.Register("PERMISSION_STATE_GRANTED", ApiSince=34)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.PM.PackageInstallerPermissionState enum directly instead of this field.", true)>]
val mutable PermissionStateGranted : Android.Content.PM.PackageInstallerPermissionState

欄位值

Value = 1

實作

屬性

備註

安裝程式會傳遞 值 #setPermissionState(String, int) 來設定權限的狀態。 這表示安裝人員希望自動授予安裝套件的權限。 使用者及系統中的其他參與者在安裝後仍可能拒絕該權限。

Java 文件 android.content.pm.PackageInstaller.SessionParams.PERMISSION_STATE_GRANTED。

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

適用於