package ezjs_push
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Bindings for Push Notification
Install
dune-project
Dependency
Authors
Maintainers
Sources
0.1.tar.gz
sha256=a894dfe1f9d9a45b5439ff4695a57ce252e467effa9d9ca5dd95f09ce914bd17
sha512=a6d8143075a6748f8411caf7c78c4c59a36bb22c1864bab2974bb9e83a0f40a41b9cc6b53dbc640ed268ee7d47d8c0580fbe28af2e21187c4a98210ccba66dc6
doc/ezjs_push/Ezjs_push/index.html
Module Ezjs_pushSource
Source
type notifictaion_options_ml = {no_actions : notification_action_ml list option;no_body : string option;no_icon : string option;no_tag : string option;no_vibrate : int list option;no_require_interaction : bool option;no_data : data option;
}Source
val get_registration :
?none:(unit -> unit) ->
(serviceWorkerRegistration Js_of_ocaml.Js.t -> unit) ->
unitSource
val unregister_service_worker :
< unregister : 'res Js_of_ocaml.Js.meth.. > Js_of_ocaml.Js.t ->
unitSource
val push_manager :
< pushManager : < get : 'res.. > Js_of_ocaml.Js.gen_prop.. > Js_of_ocaml.Js.t ->
'resSource
val make_subscription_options :
subscrition_options_ml ->
subscription_options Js_of_ocaml.Js.tSource
val subscribe :
?options:subscrition_options_ml ->
< pushManager :
< get :
< subscribe :
subscription_options Js_of_ocaml.Js.t ->
< _then : 'a -> 'b Js_of_ocaml.Js.meth.. > Js_of_ocaml.Js.t
Js_of_ocaml.Js.meth.. >
Js_of_ocaml.Js.t.. >
Js_of_ocaml.Js.gen_prop.. >
Js_of_ocaml.Js.t ->
'a ->
unitSource
val get_subscription :
?none:(unit -> unit) ->
< pushManager :
< get :
< getSubscription :
< _then : ('a Js_of_ocaml.Js.Opt.t -> unit) -> 'b Js_of_ocaml.Js.meth.. >
Js_of_ocaml.Js.t
Js_of_ocaml.Js.meth.. >
Js_of_ocaml.Js.t.. >
Js_of_ocaml.Js.gen_prop.. >
Js_of_ocaml.Js.t ->
('a -> unit) ->
unitSource
val subscription :
?options:subscrition_options_ml ->
< pushManager :
< get :
< getSubscription :
< _then : ('a Js_of_ocaml.Js.Opt.t -> unit) -> 'b Js_of_ocaml.Js.meth.. >
Js_of_ocaml.Js.t
Js_of_ocaml.Js.meth
; subscribe :
subscription_options Js_of_ocaml.Js.t ->
< _then : ('a -> unit) -> 'c Js_of_ocaml.Js.meth.. > Js_of_ocaml.Js.t
Js_of_ocaml.Js.meth.. >
Js_of_ocaml.Js.t.. >
Js_of_ocaml.Js.gen_prop.. >
Js_of_ocaml.Js.t ->
('a -> unit) ->
unitSource
val make_notification_options :
notifictaion_options_ml ->
notification_options Js_of_ocaml.Js.tSource
val show_notification :
?options:notifictaion_options_ml ->
string ->
< showNotification :
Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t ->
notification_options Js_of_ocaml.Js.t ->
< _then : ('a -> unit) -> 'b Js_of_ocaml.Js.meth.. > Js_of_ocaml.Js.t
Js_of_ocaml.Js.meth.. >
Js_of_ocaml.Js.t ->
unit sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>