Skip to content

Commit

Permalink
adding open 'typed' and inAppBrowser functions, functional state
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibaut committed Jul 2, 2021
1 parent 7ad13ef commit 0ca18d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cordova_in_app_browser.mli
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,10 @@ val open_ :
unit
[@@js.global "cordova.InAppBrowser.open"]

(*-------------------------------TODO-------------------------------------------- *)
(*Function that allow to use "InAppBrowser" object*)
type inAppBrowser

(*Same as "open_" but return a "typed" result: an "InAppBrowser" result*)
val open_t : url:string -> tgt:target -> option:string -> inAppBrowser
[@@js.global "cordova.InAppBrowser.open"]

Expand All @@ -246,6 +247,7 @@ val addEventListener :

val close : inAppBrowser -> unit [@@js.call]

(*That function indicate if the plugin "cordova-InAppBrowser" is currently available*)
[@@@js.stop]

val plugin_available : unit -> bool
Expand Down

0 comments on commit 0ca18d6

Please sign in to comment.