Skip to content

Simple example for Toast Notification without any plugins for Corona SDK.

License

Notifications You must be signed in to change notification settings

KrDPNsk/simple_toast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

simple_toast

Simple example for Toast Notification without any plugins for Corona SDK.

For all supported platforms!

How to use?

• Add toast.lua in your Corona project root directory

• Add string 'require "toast"' in main.lua

• For display a toast notification, use next code:

showToast(text[, {duration = dur, gravity = grav}])

where:

text - your text for notification;

dur - "short" (1500 ms), "normal" (3000 ms), "long" (5000 ms);
	
grav - "top", "center", "bottom";

For example:

require "toast"

-- Your code

showToast("Hello!", {duration = "long", gravity = "bottom"})

-- or wihtout options (then duration = "normal" and gravity = "center"):

showToast("Hello!")

About

Simple example for Toast Notification without any plugins for Corona SDK.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages