Back

SetOrientation

SetOrientation.

  app.SetOrientation( orient, callback )

Example - Example



function OnStart()
{
    app.SetOrientation( "Landscape" );

    lay = app.CreateLayout( "Linear", "Vertical" );
    txt = app.CreateText( "Hello" );
    txt.SetTextSize( 32 );
    lay.AddChild( txt );
    app.AddLayout( lay );
}
    Copy     Copy All       Run      

string: "Landscape" or "Portrait" or "Default"
function()