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)+.

Entries

Link copied to clipboard

Push notification permission has already been granted for the app - no request was required.

Link copied to clipboard

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 to true.

Link copied to clipboard

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.

Link copied to clipboard

The device Android version does not require the push notification permission.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.