Back

Wait

Hello World

Performs a synchronous delay in your program which effectively pauses it.

app.Wait( seconds )

Its main use is for making brief pauses when communicating with external devices so that they get a chance to do work while your app executes.

Be careful when using this method in your code as Android quickly thinks that your app does not respond if used for over about 30 seconds.

Example - Synchronous delay

function OnStart()
{
    alert( "Press Ok to start the delay." )
    app.Wait( 5 );
    app.ShowPopup( "Done." );
}
    Copy     Copy All       Run      
number: seconds