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_NOTIFICATIONS
permission 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 String
name
private final Integer
ordinal
private final EnumEntries<NotificationPermissionRequestResult>
entries
-
Enum Constant Summary
Enum Constants Enum Constant Description PERMISSION_ALREADY_GRANTED
Push notification permission has already been granted for the app - no request was required.
PERMISSION_RATIONALE_REQUIRED
The 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
isRationaleActivity
set totrue
.PERMISSION_REQUESTED
The
POST_NOTIFICATIONS
permission 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_REQUIRED
The device Android version does not require the push notification permission.
-
Method Summary
Modifier and Type Method Description final NotificationPermissionRequestResult
valueOf(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_NOTIFICATIONS
permission 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_NOTIFICATIONS
permission for the app. This permission is required to send push notifications to apps that are running Android 13(T)+.
-
-
-
-