Enum NotificationPermissionRequestResult
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum NotificationPermissionRequestResult extends Enum<NotificationPermissionRequestResult>
Enum to details the result of requesting the
POST_NOTIFICATIONSpermission for the app. This permission is required to send push notifications to apps that are running Android 13(T)+.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final Integerordinalprivate final EnumEntries<NotificationPermissionRequestResult>entries
-
Enum Constant Summary
Enum Constants Enum Constant Description PERMISSION_ALREADY_GRANTEDPush notification permission has already been granted for the app - no request was required.
PERMISSION_RATIONALE_REQUIREDThe user has previously denied push permission for the app and an activity explaining the need for push notifications should be shown before making the permissions request. If this activity is already being displayed then Marigold.requestNotificationPermission should be called with
isRationaleActivityset totrue.PERMISSION_REQUESTEDThe
POST_NOTIFICATIONSpermission was requested for the app. This will display a popup to the user, the outcome of which can be handled in the calling activity's Activity.onRequestPermissionsResult implementation.PERMISSION_NOT_REQUIREDThe device Android version does not require the push notification permission.
-
Method Summary
Modifier and Type Method Description final NotificationPermissionRequestResultvalueOf(String value)Returns the enum constant of this type with the specified name. final Array<NotificationPermissionRequestResult>values()Returns an array containing the constants of this enum type, in the order they're declared. final EnumEntries<NotificationPermissionRequestResult>getEntries()Enum to details the result of requesting the POST_NOTIFICATIONSpermission for the app.-
-
Method Detail
-
valueOf
final NotificationPermissionRequestResult valueOf(String value)
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.)
-
values
final Array<NotificationPermissionRequestResult> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getEntries
final EnumEntries<NotificationPermissionRequestResult> getEntries()
Enum to details the result of requesting the
POST_NOTIFICATIONSpermission for the app. This permission is required to send push notifications to apps that are running Android 13(T)+.
-
-
-
-