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.

    • 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 action
        title - the title of the action
        actionIntent - the Intent to fire when users trigger this action
        flags - 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 action
        title - the title of the action, must be unique per category
        actionIntent - the Intent to fire when users trigger this action
        remoteInput - a RemoteInput to add to the action
        flags - 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.