Detailed Description

The JS DOM 'screen orientation' object.

Public Member Functions

 JSScreenOrientation (string t)
 
 JSScreenOrientation ()
 
void unlock ()
 Unlocks the orientation. More...
 
bool Lock ()
 Locks the orientation. More...
 
override string ToString ()
 Used by === in JS. More...
 

Static Public Member Functions

static string FromUnity (UnityEngine.DeviceOrientation so)
 Converts from a Unity type. More...
 
static ScreenOrientation ToUnity (string type)
 Converts to a Unity type. More...
 

Public Attributes

string type
 

Properties

ScreenOrientation unityType [get]
 The unity orientation type. More...
 
float angle [get]
 Orientation angle. More...
 

Constructor & Destructor Documentation

PowerUI.JSScreenOrientation.JSScreenOrientation ( string  t)
inline
PowerUI.JSScreenOrientation.JSScreenOrientation ( )
inline

Member Function Documentation

static string PowerUI.JSScreenOrientation.FromUnity ( UnityEngine.DeviceOrientation  so)
inlinestatic

Converts from a Unity type.

bool PowerUI.JSScreenOrientation.Lock ( )
inline

Locks the orientation.

override string PowerUI.JSScreenOrientation.ToString ( )
inline

Used by === in JS.

static ScreenOrientation PowerUI.JSScreenOrientation.ToUnity ( string  type)
inlinestatic

Converts to a Unity type.

void PowerUI.JSScreenOrientation.unlock ( )
inline

Unlocks the orientation.

Member Data Documentation

string PowerUI.JSScreenOrientation.type

Property Documentation

float PowerUI.JSScreenOrientation.angle
get

Orientation angle.

ScreenOrientation PowerUI.JSScreenOrientation.unityType
get

The unity orientation type.