onesignal-web-sdk
Version:
Web push notifications from OneSignal.
26 lines (22 loc) • 617 B
text/typescript
export class NotificationActionButton {
/**
* Any unique identifier to represent which button was clicked. This is typically passed back to the service worker
* and host page through events to identify which button was clicked.
* e.g. 'like-button'
*/
public action: string;
/**
* The notification action button's text.
*/
public title: string;
/**
* A valid publicly reachable HTTPS URL to an image.
*/
public icon: URL;
/**
* The URL to open the web browser to when this action button is clicked.
*/
public url: URL;
constructor() {
}
}