Notification

class Notification(pointer: <Error class: unknown class><<Error class: unknown class>>)

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

Since

2.8

Constructors

Link copied to clipboard
constructor(pointer: <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
fun connectClicked(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 connectClosed(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when a notification has been withdrawn.