Udostępnij za pośrednictwem


PackageInstaller.SessionParams.PermissionStateDenied Field

Definition

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_DENIED", 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 PermissionStateDenied = 2;
[<Android.Runtime.Register("PERMISSION_STATE_DENIED", 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 PermissionStateDenied : Android.Content.PM.PackageInstallerPermissionState

Field Value

Value = 2

Implements

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 deny the permission by default to the package being installed. The user and other actors in the system may still be able to grant the permission after installation.

Java documentation for android.content.pm.PackageInstaller.SessionParams.PERMISSION_STATE_DENIED.

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.

Applies to