package obus
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Pure Ocaml implementation of the D-Bus protocol
Install
dune-project
Dependency
Authors
Maintainers
Sources
1.2.3.tar.gz
sha256=75703f78015e15d03d0fdba1633a155875daf17d854225658429e72a0df06258
md5=3090a796f0af95e16838d81656ac4b97
doc/obus.notification/Notification/index.html
Module NotificationSource
Popup notifications
For complete details about notifications, look at the the official specifications
Application name used for notification. The default value is taken from Sys.argv.(0)
If the application has a desktop entry, it can be specified here
Operations on notifications
Type of an opened notifications
Waits for a notification to be closed then returns:
`Closedif the user clicked on the cross, timeout was reached or the notification daemon exited
`Defaultif the default action was invoked, i.e. the user clicked on the notification, but not on a buttons
- the corresponding action if the user clicked on a button other than the cross
Opening notifications
Urgency level of popups
Source
type image = {img_width : int;img_height : int;img_rowstride : int;img_has_alpha : bool;img_bits_per_sample : int;img_channels : int;img_data : string;
}An image description
Source
val notify :
?app_name:string ->
?desktop_entry:string ->
?replace:_ t ->
?icon:string ->
?image:image ->
summary:string ->
?body:string ->
?actions:(string * ([> `Default | `Closed ] as 'a)) list ->
?urgency:urgency ->
?category:string ->
?sound_file:string ->
?suppress_sound:bool ->
?pos:(int * int) ->
?hints:(string * OBus_value.V.single) list ->
?timeout:int ->
unit ->
'a t Lwt.tOpen a notification.
app_nameanddesktop_entrycan override default values taken from referencesreplaceis a popup id this notification replaceiconis the notification icon. It is either as a URI (file://...) or a name in a freedesktop.org-compliant icon theme (not a GTK+ stock ID)imageis an image, it is used ificonis not presentsummaryis a single line overview of the notificationbodyis a multi-line body of text. Each line is a paragraph, server implementations are free to word wrap them as they see fit. The body may contain simple markup as specified in Markup. It must be encoded using UTF-8. If the body is omitted, just the summary is displayed.actionis a list of (text, key) pair,textis the text displayed to the user andkeyis the value which will be returned when the action is invokedcategoryis a string representing the category of the notification, for example: "device.added", "email.arrived" (more category can be found in the specifications)sound_fileis a sound file to play while displaying the notificationsuppress_soundtell the daemon to suppress soundsposis a screen positionhintsis a list of additionnal hintstimeoutis a timeout in millisecond
Informations
Server informations
Retreive server informations
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page