package ezjs_extension

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Browser_common.Runtime end
class type onInstalledEvent = object ... end
class type runtime = object ... end
val runtime : runtime Ezjs_min.t
val last_error : unit -> Ezjs_min.error Ezjs_min.t
val getManifest : unit -> 'a Ezjs_min.t
val getURL : string -> string
val reload : unit -> unit
val onStartup : (unit -> unit) -> unit
val onInstalled : (onInstalledEvent Ezjs_min.t -> unit) -> unit
val onSuspend : (unit -> unit) -> unit
val onSuspendCanceled : (unit -> unit) -> unit
val onUpdateAvailabale : ('a Ezjs_min.t -> unit) -> unit
val onConnect : (Extension_utils.Runtime.port Ezjs_min.t -> unit) -> unit
val onConnectExternal : (Extension_utils.Runtime.port Ezjs_min.t -> unit) -> unit
val onMessage : ('a Ezjs_min.t -> Ezjs_min.js_string Ezjs_min.t -> ('a Ezjs_min.t -> bool Ezjs_min.t) Ezjs_min.callback -> unit) -> unit
val onMessageExternal : ('a Ezjs_min.t -> Ezjs_min.js_string Ezjs_min.t -> ('a Ezjs_min.t -> bool Ezjs_min.t) Ezjs_min.callback -> unit) -> unit
val onRestartRequired : (Ezjs_min.js_string Ezjs_min.t -> unit) -> unit
val getBackgroundPage : (Ezjs_min.window Ezjs_min.t -> unit) -> unit
val openOptionsPage : ?callback:(unit -> unit) -> unit -> unit
val setUninstallURL : ?callback:(unit -> unit) -> Ezjs_min.js_string Ezjs_min.t -> unit
val requestUpdateCheck : (Extension_utils.Runtime.requestCheckResponse Ezjs_min.t Ezjs_min.prop -> unit) -> unit
val sendMessage : ?id:Ezjs_min.js_string Ezjs_min.t -> ?options:Extension_utils.Runtime.connectInfo Ezjs_min.t -> ?callback:('a Ezjs_min.t -> unit) -> 'b Ezjs_min.t -> unit
val sendNativeMessage : ?callback:('a Ezjs_min.t -> unit) -> string -> 'b Ezjs_min.t -> unit
val getPlatformInfo : (Extension_utils.Runtime.platform_info -> unit) -> unit
val getPackageDirectoryEntry : ('a -> unit) -> unit
OCaml

Innovation. Community. Security.