Companion

Properties

Link copied to clipboard
external val maxActions: Int

The maxActions read-only static property of the Notification interface returns the maximum number of actions that can be displayed in a notification.

Link copied to clipboard

The permission read-only static property of the Notification interface indicates the current permission granted by the user for the current origin to display web notifications.

Functions

Link copied to clipboard

The requestPermission() static method of the Notification interface requests permission from the user for the current origin to display notifications.

Link copied to clipboard
external fun requestPermissionAsync(deprecatedCallback: NotificationPermissionCallback = definedExternally): Promise<NotificationPermission>

The requestPermission() static method of the Notification interface requests permission from the user for the current origin to display notifications.