Variable Notification
Notification: {
permission: NotificationPermission;
prototype: Notification;
requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
new (title: string, options?: NotificationOptions): Notification;
}
permission: NotificationPermission;
prototype: Notification;
requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
new (title: string, options?: NotificationOptions): Notification;
}
Type declaration
- new (title, options?): Notification
Parameters
- title: string
Optional
options: NotificationOptions
Returns Notification
Readonly
permission: NotificationPermissionprototype: Notification
request
Permission :function- request
Permission (deprecatedCallback?): Promise<NotificationPermission> Parameters
Optional
deprecatedCallback: NotificationPermissionCallback
Returns Promise<NotificationPermission>
- request
MDN Reference