Notification

class Notification(val webkitNotificationPointer: <Error class: unknown class><<Error class: unknown class>>)(source)

Holds information about a notification that should be shown to the user.

Since

2.8

Constructors

Link copied to clipboard
constructor(webkitNotificationPointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The body for the notification.

Link copied to clipboard
val id: <Error class: unknown class>

The unique id for the notification.

Link copied to clipboard
val tag: String?

The tag identifier for the notification.

Link copied to clipboard

The title for the notification.

Link copied to clipboard
val webkitNotificationPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun clicked()

Tells WebKit the notification has been clicked.

Link copied to clipboard
fun close()

Closes the notification.

Link copied to clipboard

Emits the "clicked" signal. See onClicked.

Link copied to clipboard

Emits the "closed" signal. See onClosed.

Link copied to clipboard
fun onClicked(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when a notification has been clicked. See webkit_notification_clicked().

Link copied to clipboard
fun onClosed(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when a notification has been withdrawn.