sendNotification

open fun sendNotification(id: String? = null, notification: Notification)

Sends a notification on behalf of @application to the desktop shell. There is no guarantee that the notification is displayed immediately, or even at all.

Notifications may persist after the application exits. It will be D-Bus-activated when the notification or one of its actions is activated.

Modifying @notification after this call has no effect. However, the object can be reused for a later call to this function.

Since

2.40

Parameters

id

id of the notification, or null

notification

the #GNotification to send