Back

ToBack

JS Py
Hello World

Hides the app but continue running it in the background.

app.ToBack()

If called, the global OnPause event will be fired and if reshown, OnResume is fired.

See Also: ToFront

Example - App to Background

function OnStart()
{
    alert( "App will now go to back." );
    app.ToBack();
}

function OnPause()
{
    app.ShowPopup( "OnPause" );
}

function OnResume()
{
    app.ShowPopup( "OnResume" );
}
from native import app

def OnStart():
    app.Alert("App will now go to back.")
    app.ToBack()

def OnPause():
    app.ShowPopup("OnPause")

def OnResume():
    app.ShowPopup("OnResume")
Copy All       Run