public enum NotificationPermissionResult.AuthorizationLevel
- Object
- Enum<NotificationPermissionResult.AuthorizationLevel>
- NotificationPermissionResult.AuthorizationLevel
ImplementsComparable<NotificationPermissionResult.AuthorizationLevel>
The granular authorization level returned by the platform. The constants are
ordered from least to most permissive, so any level after
#DENIED means
notifications are permitted.Enum constants
NOT_DETERMINED | The user has not yet made a choice regarding notification permission. |
DENIED | The user explicitly denied notification permission. |
AUTHORIZED | The user granted full notification permission. |
PROVISIONAL | Notifications were authorized provisionally (delivered quietly without an explicit prompt). |
EPHEMERAL | Notifications were authorized for a limited amount of time (App Clip style). |
Methods
public static NotificationPermissionResult.AuthorizationLevel[] values() | |
public static NotificationPermissionResult.AuthorizationLevel valueOf(String name) |
Inherited methods
Enum constant details
NOT_DETERMINED
NOT_DETERMINEDThe user has not yet made a choice regarding notification permission.
DENIED
DENIEDThe user explicitly denied notification permission.
AUTHORIZED
AUTHORIZEDThe user granted full notification permission.
PROVISIONAL
PROVISIONALNotifications were authorized provisionally (delivered quietly without an
explicit prompt). Applies to iOS provisional authorization.
EPHEMERAL
EPHEMERALNotifications were authorized for a limited amount of time (App Clip style).
Method details
values
public static NotificationPermissionResult.AuthorizationLevel[] values()valueOf
public static NotificationPermissionResult.AuthorizationLevel valueOf(String name)