Changes the screen mode of your application.
Example - SetScreenMode Demo
function OnStart()
{
lay = app.CreateLayout( "Linear", "Vertical,VCenter,FillXY" );
spn = app.CreateSpinner( "Default,Normal,Full,Game" );
spn.SetOnChange( SetScreenMode );
lay.AddChild( spn );
app.AddLayout( lay );
}
function SetScreenMode( mode )
{
app.SetScreenMode( mode );
}
from native import app
def OnStart():
lay = app.CreateLayout("Linear", "Vertical,VCenter,FillXY")
spn = app.CreateSpinner("Default,Normal,Full,Game")
spn.SetOnChange(SetScreenMode)
lay.AddChild(spn)
app.AddLayout(lay)
def SetScreenMode(mode, index):
app.SetScreenMode(mode)