Version: Unity 6 (6000.0)
LanguageEnglish
  • C#

PermissionCallbacks.PermissionDeniedAndDontAskAgain

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Parameters

value Permission name.

Description

Triggered when the user chooses Deny And Don't Ask Again for a permission request or denies the permission twice on newer Android versions, or the operating system determines that it should not be requested again.

If you do not subscribe to this event, Unity triggers PermissionCallbacks.PermissionDenied as a fallback. On Android versions 12 and newer, it's recommended to use PermissionCallbacks.PermissionDenied only as PermissionCallbacks.PermissionDeniedAndDontAskAgain might show different behavior.

Additional resources: Permission.ShouldShowRequestPermissionRationale