OrientationManager
Constructors
new OrientationManager()
new OrientationManager(
app
):OrientationManager
Parameters
• app: Application
<any
>
Returns
Source
src/utils/OrientationManager.ts:11
Methods
init()
init(
pSprite
,pShowOnLandscape
):void
Call this function to initialize the manager and enable it
Parameters
• pSprite: string
String to create the sprite with
• pShowOnLandscape: boolean
= false
If the image should be shown on lanscape
Returns
void
NOTE
Normally, this should be called in Application.onLoadRequiredAssetsComplete
Source
src/utils/OrientationManager.ts:19
onResize()
onResize():
void
Called when the screen resizes
Returns
void