文档

Unity Engine

Unity Engine

PermissionDeniedAndDontAskAgain

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.
阅读时间1 分钟最后更新于 1 个月前

Definition

警告
Deprecated. Unreliable. Query ShouldShowRequestPermissionRationale and use PermissionDenied event.
public event Action<string> PermissionDeniedAndDontAskAgain

Remarks

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.