You.i Engine
YIViewProperty Namespace Reference

Enumerations

enum  Orientation {
  LANDSCAPE,
  PORTRAIT,
  AUTO,
  LANDSCAPE_RIGHT,
  LANDSCAPE_LEFT,
  PORTRAIT_UPRIGHT,
  AUTO_UPRIGHT
}
 
enum  StatusBar {
  STATUSBAR_VISIBLE,
  STATUSBAR_HIDDEN
}
 
enum  NavigationBar {
  NAVIGATIONBAR_VISIBLE,
  NAVIGATIONBAR_HIDDEN
}
 

Functions

bool IsLandscape (YIViewProperty::Orientation eOrientation)
 
bool IsPortrait (YIViewProperty::Orientation eOrientation)
 
bool IsAuto (YIViewProperty::Orientation eOrientation)
 

Enumeration Type Documentation

Enumerator
NAVIGATIONBAR_VISIBLE 
NAVIGATIONBAR_HIDDEN 
Enumerator
LANDSCAPE 

Force device to landscape mode. App can rotate between landscape orientations.

PORTRAIT 

Force device to portrait mode. App can rotate between portrait orientations.

AUTO 

App can rotate between all available orientations. Where capable, this setting will respect user orientation preferences. Due to differences in the underlying platform APIs, this setting behaves slightly differently on iOS vs Android.
On iOS this setting is mapped to UIInterfaceOrientationMaskAll (see https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/#//apple_ref/c/tdef/UIInterfaceOrientationMask for details).
On Android this setting is mapped to fullUser on Android API levels 18 and above, and fullSensor on earlier versions (see http://developer.android.com/reference/android/R.attr.html#screenOrientation for details)

LANDSCAPE_RIGHT 

Force device to landscape right. App cannot rotate.

LANDSCAPE_LEFT 

Force device to landscape left. App cannot rotate.

PORTRAIT_UPRIGHT 

Force device to portrait upright. App cannot rotate.

AUTO_UPRIGHT 

App can rotate between available orientations, but not upside-down. Due to differences in the underlying platform APIs, this setting behaves slightly differently on iOS vs Android.
On iOS this setting is mapped to UIInterfaceOrientationMaskAllButUpsideDown (see https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/#//apple_ref/c/tdef/UIInterfaceOrientationMask for details).
On Android this setting is mapped to sensor . Note that some Android devices will allow the UI to rotate 'upside-down' even with this setting. (see http://developer.android.com/reference/android/R.attr.html#screenOrientation for details).

Enumerator
STATUSBAR_VISIBLE 
STATUSBAR_HIDDEN 

Function Documentation

bool YIViewProperty::IsAuto ( YIViewProperty::Orientation  eOrientation)
inline

returns true if eOrientation is an auto type.

bool YIViewProperty::IsLandscape ( YIViewProperty::Orientation  eOrientation)
inline

returns true if eOrientation is a landscape type.

bool YIViewProperty::IsPortrait ( YIViewProperty::Orientation  eOrientation)
inline

returns true if eOrientation is a portrait type.