=====SetScreenMode=====
====Description====
The **SetScreenMode** method sets the screen **mode**. It could be full screen mode "Full" or normal screen mode "Normal" or "Default".
app.SetScreenMode( mode );
----
====Example====
//Called when application is started.
function OnStart()
{
//Create a layout with objects vertically centered.
lay = app.CreateLayout( "Linear", "Vertical,VCenter,FillXY" );
btnFull = app.CreateButton( "Set full screen", 0.5, 0.1 );
btnFull.SetMargins( 0, 0.05, 0, 0.05 );
lay.AddChild( btnFull );
btnNormal = app.CreateButton( "Set normal screen", 0.5, 0.1 );
btnNormal.SetMargins( 0, 0.05, 0, 0.05 );
lay.AddChild( btnNormal );
//Set function to call when button pressed.
btnFull.SetOnTouch( btn_OnFullTouch );
btnNormal.SetOnTouch( btn_OnNormalTouch );
//Add layout to app.
app.AddLayout( lay );
}
function btn_OnFullTouch()
{
app.SetScreenMode( "Full" );
}
function btn_OnNormalTouch()
{
app.SetScreenMode( "Normal" );
}