pub trait NotificationExt: 'static {
    fn clicked(&self);
    fn close(&self);
    fn body(&self) -> Option<GString>;
    fn id(&self) -> u64;
    fn tag(&self) -> Option<GString>;
    fn title(&self) -> Option<GString>;
    fn connect_clicked<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
    fn connect_closed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
    fn connect_body_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_id_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_tag_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_title_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }
Available on crate feature v2_8 only.
Expand description

Trait containing all Notification methods.

Implementors

Notification

Required Methods

Available on crate feature v2_12 only.

Tells WebKit the notification has been clicked.

This will emit the signal::Notification::clicked signal.

Closes the notification.

Obtains the body for the notification.

Returns

the body for the notification

Obtains the unique id for the notification.

Returns

the unique id for the notification

Available on crate feature v2_16 only.

Obtains the tag identifier for the notification.

Returns

the tag for the notification

Obtains the title for the notification.

Returns

the title for the notification

Available on crate feature v2_12 only.

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

Emitted when a notification has been withdrawn.

The default handler will close the notification using libnotify, if built with support for it.

Available on crate feature v2_16 only.

Implementors