package ezjs_extension

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Chrome_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 restart : unit -> unit
val connectNative : string -> Extension_utils.Runtime.port Ezjs_min.t
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 onConnectNative : (Extension_utils.Runtime.port Ezjs_min.t -> unit) -> unit
val onMessage : ('a Ezjs_min.t -> Extension_utils.Runtime.messageSender Ezjs_min.t -> ('b Ezjs_min.t -> bool Ezjs_min.t) -> unit) -> unit
val onMessageExternal : ('a Ezjs_min.t -> Extension_utils.Runtime.messageSender Ezjs_min.t -> ('a Ezjs_min.t -> bool Ezjs_min.t) -> unit) -> unit
val onRestartRequired : (Ezjs_min.js_string Ezjs_min.t -> unit) -> unit
val getBackgroundPage : unit -> Ezjs_min.window Ezjs_min.t Lwt.t
val openOptionsPage : ?callback:(unit -> 'a) -> unit -> 'a option Lwt.t
val setUninstallURL : ?callback:(unit -> 'a) -> Ezjs_min.js_string Ezjs_min.t -> 'a option Lwt.t
val requestUpdateCheck : unit -> Extension_utils.Runtime.requestCheckResponse Ezjs_min.t Lwt.t
val restartAfterDelay : ?callback:(unit -> 'a) -> int -> 'a option Lwt.t
val sendMessage : ?id:Ezjs_min.js_string Ezjs_min.t -> ?options:Extension_utils.Runtime.connectInfo Ezjs_min.t -> ?callback:('a Ezjs_min.t -> 'b) -> 'c Ezjs_min.t -> 'b option Lwt.t
val sendNativeMessage : ?callback:('a Ezjs_min.t -> 'b) -> string -> 'c Ezjs_min.t -> 'b option Lwt.t
val getPlatformInfo : unit -> Extension_utils.Runtime.platform_info Lwt.t
val getPackageDirectoryEntry : unit -> 'a Ezjs_min.t Lwt.t
OCaml

Innovation. Community. Security.