Enum NotificationPermissionResult.AuthorizationLevel
java.lang.Object
java.lang.Enum<NotificationPermissionResult.AuthorizationLevel>
com.codename1.notifications.NotificationPermissionResult.AuthorizationLevel
- All Implemented Interfaces:
Comparable<NotificationPermissionResult.AuthorizationLevel>
- Enclosing class:
NotificationPermissionResult
public static enum NotificationPermissionResult.AuthorizationLevel
extends Enum<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 Constant Summary
Enum ConstantsEnum ConstantDescriptionThe user granted full notification permission.The user explicitly denied notification permission.Notifications were authorized for a limited amount of time (App Clip style).The user has not yet made a choice regarding notification permission.Notifications were authorized provisionally (delivered quietly without an explicit prompt). -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
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). Applies to iOS provisional authorization. -
EPHEMERAL
Notifications were authorized for a limited amount of time (App Clip style).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-