Sends a desktop notification.
The following keys may be present in notification:
The serialized sound consists of a `s` or `sv`: - default : Play the default sound for the notification. - silent : Don't ever play a sound for the notification. - file `s`: A path to a sound file. - bytes `ay`: An array of bytes.
The supported sound formats are ogg/opus, ogg/vorbis and wav/pcm.
Each serialized button is a dictionary with the following supported keys:
Actions with a prefix of "app." are assumed to be exported by the application and will be activated via the org.freedesktop.Application
interface, others are activated by emitting the [signal@Portal:XdpPortal:notification-action-invoked] signal.
It is the callers responsibility to ensure that the ID is unique among all notifications.
To withdraw a notification, use [method@Portal.remove_notification].
| this |
a [class@Portal] |
| id |
unique ID for the notification |
| notification |
a [struct@GLib.Variant] dictionary with the content of the notification |
| flags |
options for this call |
| cancellable |
optional [class@Gio.Cancellable] |
| callback |
a callback to call when the request is done |
| data |
data to pass to |