Desktop::Notify::Notification(3pm) | User Contributed Perl Documentation | Desktop::Notify::Notification(3pm) |
Desktop::Notify::Notification - a notification object for the desktop notifications framework
Version 0.03
# $notify is an existing Desktop::Notify object my $note = $notify->create(summary => 'Rebuilding FooBar', body => 'Progress: 10%'); $note->show; ... # Update the notification later $note->body('Progress: 20%'); $note->show; ... # Take it off the screen $note->close;
Desktop notification objects are represented as objects of this class. They are created by a Desktop::Notify object. Displaying, closing, and modifying the notification is done by using methods in this class.
This is called internally by Desktop::Notify to create a new notification object.
Display the notification on the screen. If this notification had previously been shown and not closed yet, it will replace the existing notification.
Show can be called multiple times on the same notification, probably with attribute changes between calls, and later show calls will cause the server to seamlessly replace the existing notification.
Close the notification if it is already being displayed.
The following parameters can be set when creating the object or later modified using accessors (descriptions are from the specification at <http://www.galago-project.org/specs/notification/0.9/x408.html>)
A user-specified function to be called whenever an action is invoked can be specified with Desktop::Notify's action_callback method.
If -1, the notification's expiration time is dependent on the notification server's settings, and may vary for the type of notification. If 0, never expire.
The following extra parameters are included in the specification but not supported by Desktop::Notify at this time
2018-10-29 | perl v5.26.2 |