Companion

Properties

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
suspend fun requestPermission(deprecatedCallback: NotificationPermissionCallback = definedExternally): NotificationPermission

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

Link copied to clipboard