Skip to content
patrickkulling edited this page Oct 1, 2011 · 2 revisions

API Examples - Toast class

To display a toast message is really, really simple. Just create a new Toast instance and call the showToastMessage() method.

showToastMessage(message : String, isLongText : Boolean = false) : void

Displays a toast message on your screen. You can also pass an additional boolean parameter to set the Toast length to long.

var toast : Toast = new Toast();
toast.showToastMessage("Hey Toast");

dispose() : void

Call this function if you don't need the class anymore to free your memory.

Clone this wiki locally