Brr_io.Notification
Notifying users.
See the Notification API.
module Permission : sig ... end
Permission enum.
val permission : unit -> Permission.t
permission ()
is the permission granted by the user.
val request_permission : unit -> Permission.t Fut.or_error
request_permission ()
requests permission to display notifications.
module Direction : sig ... end
Direction enum.
module Action : sig ... end
Actions.
The type for Notification
objects.
create title ~opts
is a notification with title title
and options opts
.
val as_target : t -> Brr.Ev.target
as_target n
is n
as an event target.
val dir : t -> Direction.t
dir n
is the dir of n
.
module Ev : sig ... end
Notification events.