NotificationCategory

class NotificationCategory(val name: String)

Defines Notification Categories that can be passed to the SDK to show actions on push notifications.

Parameters

name

The category name

Constructors

Link copied to clipboard
constructor(name: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun addAction(@DrawableRes icon: Int, title: CharSequence, actionIntent: Intent?, flags: Int): NotificationCategory
fun addAction(@DrawableRes icon: Int, title: CharSequence, actionIntent: Intent?, remoteInput: RemoteInput?, flags: Int): NotificationCategory

Adds an Action to an action category. Note: Actions with duplicate titles will be ignored