-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcordova_background.mli
70 lines (52 loc) · 2.02 KB
/
cordova_background.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
val enable : unit -> unit
[@@js.global "cordova.plugins.backgroundMode.enable"]
val disable : unit -> unit
[@@js.global "cordova.plugins.backgroundMode.disable"]
val is_enabled : unit -> bool
[@@js.global "cordova.plugins.backgroundMode.isEnabled"]
val is_active : unit -> bool
[@@js.global "cordova.plugins.backgroundMode.isActive"]
val onactivate : unit -> unit
[@@js.global "cordova.plugins.backgroundMode.onactivate"]
val set_onactivate : (unit -> unit) -> unit
[@@js.set "cordova.plugins.backgroundMode.onactivate"]
val ondeactivate : unit -> unit
[@@js.global "cordova.plugins.backgroundMode.ondeactivate"]
val set_ondeactivate : (unit -> unit) -> unit
[@@js.set "cordova.plugins.backgroundMode.ondeactivate"]
val onfailure : unit -> unit
[@@js.global "cordova.plugins.backgroundMode.onfailure"]
val set_onfailure : (unit -> unit) -> unit
[@@js.set "cordova.plugins.backgroundMode.onfailure"]
val on : string -> (unit -> unit) -> unit
[@@js.global "cordova.plugins.backgroundMode.on"]
val disable_web_view_optimizations : unit -> unit
[@@js.global "cordova.plugins.backgroundMode.disableWebViewOptimizations"]
val disable_battery_optimizations : unit -> unit
[@@js.global "cordova.plugins.backgroundMode.disableBatteryOptimizations"]
type config
val create_config :
?title:string ->
?ticker:string ->
?text:string ->
?resume:bool ->
?silent:bool ->
unit ->
config
[@@js.builder]
val title : config -> string
val ticker : config -> string
val text : config -> string
val resume : config -> bool
val silent : config -> bool
val set_title : config -> string -> unit
val set_ticker : config -> string -> unit
val set_text : config -> string -> unit
val set_resume : config -> bool -> unit
val set_silent : config -> bool -> unit
val set_defaults : config -> unit
[@@js.global "cordova.plugins.backgroundMode.setDefaults"]
val get_defaults : unit -> config
[@@js.global "cordova.plugins.backgroundMode.getDefaults"]
val configure : config -> unit
[@@js.global "cordova.plugins.backgroundMode.configure"]