DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


built_in:show_popup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

built_in:show_popup [2015/03/04 17:23] (current)
octazid created
Line 1: Line 1:
 +=====ShowPopup=====
 +
 +//​(Information and examples taken from the DroidScript documentation)//​
 +
 +====Description====
 +
 +The **ShowPopup** method shows a popup message on the screen for a few seconds which then fades away.
 +
 +Use the option **"​Short"​** to shorten the time that the message is displayed and the option **"​Bottom"​** to make the message appear near the bottom of the screen.
 +
 +<​code>​ app.ShowPopup( text, options );</​code>​
 +
 +----
 +
 +====Example - Top====
 +
 +<code javascript>​
 +
 +function OnStart()
 +{
 +  app.ShowPopup( "Hello World!"​ );
 +}
 +
 +</​code>​
 +
 +
 +====Example - Bottom====
 +
 +<code javascript>​
 +
 +function OnStart()
 +{
 +  app.ShowPopup( "Hello World!",​ "​Bottom,​Short"​ );
 +}
 +
 +</​code>​
  
built_in/show_popup.txt ยท Last modified: 2015/03/04 17:23 by octazid