PackageInstaller.SessionParams.PermissionStateGranted 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.PackageInstallerPermissionState enum directly instead of this field.
Value is passed by the installer to #setPermissionState(String, int)
to set
the state of a permission.
[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
Field Value
Value = 1Implements
- Attributes
Remarks
Value is passed by the installer to #setPermissionState(String, int)
to set the state of a permission. This indicates the installers wants to automatically grant the permission to the package being installed. The user and other actors in the system may still be able to deny the permission after installation.
Java documentation for android.content.pm.PackageInstaller.SessionParams.PERMISSION_STATE_GRANTED
.
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.