Struct ashpd::desktop::notification::NotificationProxy[][src]

pub struct NotificationProxy<'a>(_);
Expand description

The interface lets sandboxed applications send and withdraw notifications.

It is not possible for the application to learn if the notification was actually presented to the user. Not a portal in the strict sense, since there is no user interaction.

Note that in contrast to most other portal requests, notifications are expected to outlast the running application. If a user clicks on a notification after the application has exited, it will get activated again.

Notifications can specify actions that can be activated by the user. Actions whose name starts with ‘app.’ are assumed to be exported and will be activated via the ActivateAction() method in the org.freedesktop.Application interface. Other actions are activated by sending the #org.freedeskop.portal.Notification::ActionInvoked signal to the application.

Implementations

Create a new instance of NotificationProxy.

Get a reference to the underlying Proxy.

Signal emitted when a particular action is invoked.

Sends a notification.

The ID can be used to later withdraw the notification. If the application reuses the same ID without withdrawing, the notification is replaced by the new one.

Arguments

  • id - Application-provided ID for this notification.
  • notification - The notification.

Withdraws a notification.

Arguments

  • id - Application-provided ID for this notification.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.