DOCS

Speak

Use wa.system.speak("Hello"); to speak the text using text-to-speach.

Message Dialogs

There is no need for ugly alert() dialogs. To show a message dialog use the following code:

var ops = {
	title : "My App",
	message: "Hello there",
	action:"Hi", //use action button and set caption
	cancel:"Leave", //use cancel button and set caption
	alternate:"More..."  //use an additional button and set caption
};
wa.system.messageDialog( ops, function(o){
	if(o.button == 1){
		//action button pressed
	}else if(o.button == 2){
		//cancel button pressed
	}else if(o.button == 3){
		//alternate button pressed
	}
	wa.log("Button pressed=" + o.button);
});


Fork me on GitHub