public enum NotificationPermissionResult.AuthorizationLevel

  1. Object
  2. Enum<NotificationPermissionResult.AuthorizationLevel>
  3. 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_DETERMINEDThe user has not yet made a choice regarding notification permission.
DENIEDThe user explicitly denied notification permission.
AUTHORIZEDThe user granted full notification permission.
PROVISIONALNotifications were authorized provisionally (delivered quietly without an explicit prompt).
EPHEMERALNotifications 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_DETERMINED
The user has not yet made a choice regarding notification permission.

DENIED

DENIED
The user explicitly denied notification permission.

AUTHORIZED

AUTHORIZED
The user granted full notification permission.

PROVISIONAL

PROVISIONAL
Notifications were authorized provisionally (delivered quietly without an explicit prompt). Applies to iOS provisional authorization.

EPHEMERAL

EPHEMERAL
Notifications 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)