NotificationActionHandler
Handles actions for notifications.
It defines the methods necessary for handling actions triggered by interacting with a notification, allowing for custom behavior to be defined when a user acts on a notification.
Interface for handling notification actions.
Syntax: interface NotificationActionHandler
Types
Name | Type |
---|---|
Companion | object Companion |
Companion Properties
Name | Return Type | Description |
---|---|---|
ACTION_DEEPLINK | String | const val ACTION_DEEPLINK: String |
ACTION_DISMISS | String | const val ACTION_DISMISS: String |
ACTION_IN_LINE_REPLY | String | const val ACTION_IN_LINE_REPLY: String |
ACTION_OPEN_APP | String | const val ACTION_OPEN_APP: String |
ACTION_OPEN_HTML | String | const val ACTION_OPEN_HTML: String |
ACTION_OPEN_URL | String | const val ACTION_OPEN_URL: String |
ACTION_OPEN_WEB_VIEW | String | const val ACTION_OPEN_WEB_VIEW: String |
ACTION_SHARE | String | const val ACTION_SHARE: String |
ACTION_TRIVIAL_REPLIES | String | const val ACTION_TRIVIAL_REPLIES: String |
Functions
Name | Description |
---|---|
handleAction | abstract fun handleAction(context: Context, action: String, intent: Intent): Boolean Handles the action that has been triggered. |
handleAction
Handles the action that has been triggered.
Syntax: abstract fun handleAction(context: Context, action: String, intent: Intent): Boolean
Return: True if the action should be overridden, false otherwise.
Parameters:
Name | Description |
---|---|
context | The context in which the receiver is running. |
action | The action that has been triggered. |
intent | The intent contains the action and additional data. |
Updated about 1 month ago