Allow access to the requested permission.
Depending on whether the dialog choice should be remembered, this will change the permission's access status:
An Error if the dialog is already closed.
Deny access to the requested permission.
Depending on whether the dialog choice should be remembered, this will change the permission's access status:
An Error if the dialog is already closed.
Dismiss the dialog without making a choice.
Dismissing the dialog will have no effect on the permission's access
status, until the number of dismissals reaches
PermissionStoreParameters.dismissDenyThreshold, at which point the
permission's access status will change to
"BLOCKED_AUTOMATICALLY"
.
An Error if the dialog is already closed.
Set whether the dialog choice should be remembered.
Actual persistence is out of scope for this library. But this does affect how the permission's PermissionAccessStatus is changed by the dialog choice:
shouldRemember
is true
and access is allowed, the permission's
access status will change to
"GRANTED"
.shouldRemember
is true
and access is denied, the permission's
access status will change to
"BLOCKED"
.shouldRemember
is false
and access is allowed, the permission's
access status will change to
"ALLOWED"
.shouldRemember
is false
and access is denied, the permission's
access status will change to
"DENIED"
.Whether the choice should be remembered.
An Error if the dialog is already closed.
PermissionStoreParameters.dialogDefaultRemember which sets the default behavior for all dialogs.
A virtual permission access dialog.