Toast Notifications

How to use DialogioToast class.

new DialogioToast(location, removeTime)

location (number 0 ⇒ 5)

All Toasts push location.

  • '0' : Top - Center (Top and center of the screen)

  • '1' : Bottom - Center (Bottom and center of the screen)

  • '2' : Top - Left (Top and left of the screen)

  • '3' : Top - Right (Top and right of the screen)

  • '4' : Bottom - Left (Bottom and left of the screen)

  • '5' : Bottom - Right (Bottom and right of the screen)

removeTime (number in milliseconds)

Each toast automatically disappears after this millisecond period has elapsed.

Default is 8000 ms

Last updated