Package com.marigold.sdk
Class NotificationCategory
-
- All Implemented Interfaces:
public final class NotificationCategory
Defines Notification Categories that can be passed to the SDK to show actions on push notifications.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description NotificationCategory(String name)
-
Method Summary
Modifier and Type Method Description final String
getName()
final NotificationCategory
addAction(@DrawableRes() Integer icon, CharSequence title, Intent actionIntent, Integer flags)
Adds an Action to an action category. final NotificationCategory
addAction(@DrawableRes() Integer icon, CharSequence title, Intent actionIntent, RemoteInput remoteInput, Integer flags)
Adds an Action to an action category. -
-
Constructor Detail
-
NotificationCategory
NotificationCategory(String name)
- Parameters:
name
- The category name
-
-
Method Detail
-
addAction
final NotificationCategory addAction(@DrawableRes() Integer icon, CharSequence title, Intent actionIntent, Integer flags)
Adds an Action to an action category. Note: Actions with duplicate titles will be ignored
- Parameters:
icon
- icon to show for this actiontitle
- the title of the actionactionIntent
- the Intent to fire when users trigger this actionflags
- May be FLAG_ONE_SHOT, FLAG_NO_CREATE, FLAG_CANCEL_CURRENT, FLAG_UPDATE_CURRENT, FLAG_IMMUTABLE or any of the flags as supported by Intent.fillIn() to control which unspecified parts of the intent that can be supplied when the actual send happens.
-
addAction
final NotificationCategory addAction(@DrawableRes() Integer icon, CharSequence title, Intent actionIntent, RemoteInput remoteInput, Integer flags)
Adds an Action to an action category. Note: Actions with duplicate titles will be ignored
- Parameters:
icon
- icon to show for this actiontitle
- the title of the action, must be unique per categoryactionIntent
- the Intent to fire when users trigger this actionremoteInput
- a RemoteInput to add to the actionflags
- May be FLAG_ONE_SHOT, FLAG_NO_CREATE, FLAG_CANCEL_CURRENT, FLAG_UPDATE_CURRENT, FLAG_IMMUTABLE or any of the flags as supported by Intent.fillIn() to control which unspecified parts of the intent that can be supplied when the actual send happens.
-
-
-
-