NotificationAction
A notification action that can be displayed as a button in the notification.
import { NotificationAction } from '@mobrowser/api';
Properties
text
readonly text?: string;
The text label of the action button.
action
readonly action: (notification: Notification) => void;
The callback function to invoke when the action button is clicked.
notification: The notification that the action belongs to.