|Manuals

waitForNewScreen

The waitForNewScreen command waits until a new screen arrives, blocking the code execution until the event is raised or the operation times out. In case the operation  succeeds, the success function will be executed  in case the operation fails  or times out, the error function will be executed.

JavaScript Code

display.waitForNewScreen(timeout, success, error);

Parameters

timeout  : Integer (milliseconds)

success : JavaScript function

error      : JavaScript function

See Also