Gio.Notification.new
function new(title: String): Gio.Notification {
// Gjs wrapper for g_notification_new()
}
Creates a new Gio.Notification with title as its title.
After populating @notification with more details, it can be sent to the desktop shell with Gio.Application.prototype.send_notification. Changing any properties after this call will not have any effect until resending @notification.
Since 2.40
- title
the title of the notification
- Returns
a new Gio.Notification instance