package cordova-plugin-toast

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type styling_toast = private Ojs.t
val create_styling_toast : ?opacity:float -> ?background_color:string -> ?text_color:string -> ?corner_radius:int -> ?horizontal_padding:int -> ?vertical_padding:int -> unit -> styling_toast
type duration =
  1. | Short
  2. | Long
type position =
  1. | Bottom
  2. | Center
  3. | Long
type options = private Ojs.t
val create_options : ?message:string -> ?duration:duration -> ?position:position -> ?add_pixels_y:int -> ?styling:styling_toast -> unit -> options
val show_short_top : string -> ?succ_cb:(unit -> unit) -> ?error_cb:(unit -> unit) -> unit -> unit
val show_short_center : string -> ?succ_cb:(unit -> unit) -> ?error_cb:(unit -> unit) -> unit -> unit
val show_short_bottom : string -> ?succ_cb:(unit -> unit) -> ?error_cb:(unit -> unit) -> unit -> unit
val show_long_top : string -> ?succ_cb:(unit -> unit) -> ?error_cb:(unit -> unit) -> unit -> unit
val show_long_center : string -> ?succ_cb:(unit -> unit) -> ?error_cb:(unit -> unit) -> unit -> unit
val show_long_bottom : string -> ?succ_cb:(unit -> unit) -> ?error_cb:(unit -> unit) -> unit -> unit
val show_with_options : ?options:options -> ?succ_cb:(unit -> unit) -> ?error_cb:(unit -> unit) -> unit -> unit
val hide : unit -> unit
OCaml

Innovation. Community. Security.