package ezjs_push
Module Ezjs_pushSource
Notification API
Push API
Service Worker API
OCaml Helpers
Source
type 'data notification_options_ml = {no_dir : string option;no_lang : string option;no_badge : string option;no_body : string option;no_tag : string option;no_icon : string option;no_image : string option;no_data : 'data option;no_vibrate : int list option;no_renotify : bool option;no_require_interaction : bool option;no_actions : notification_action_ml list option;no_silent : bool option;no_timestamp : string option;
}Source
val get_registration :
?none:??? ->
?scope:??? ->
(serviceWorkerRegistration Ezjs_min.t -> unit) ->
unitSource
val update_worker :
?callback:??? ->
< update : 'a Ezjs_min.Promise.promise Js_of_ocaml.Js.t 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 urlBase64ToUint8Array :
string ->
(int, int, Bigarray.int8_unsigned_elt) Js_of_ocaml__Typed_array.typedArray
Js_of_ocaml.Js.tSource
val subscribe :
?verbose:??? ->
?options:??? ->
< pushManager :
< get :
< subscribe :
subscription_options Ezjs_min.t Ezjs_min.optdef ->
'a Ezjs_min.Promise.promise 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 get_subscription :
?none:??? ->
< pushManager :
< get :
< getSubscription :
'a Ezjs_min.Opt.t Ezjs_min.Promise.promise 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 :
?verbose:??? ->
?options:??? ->
< pushManager :
< get :
< getSubscription :
'a Ezjs_min.Opt.t Ezjs_min.Promise.promise Js_of_ocaml.Js.t
Js_of_ocaml.Js.meth
; subscribe :
subscription_options Ezjs_min.t Ezjs_min.optdef ->
'a Ezjs_min.Promise.promise 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 show_notification :
?callback:??? ->
?options:??? ->
serviceWorkerRegistration Ezjs_min.t ->
string ->
unit