Orientation Class
portrait / landscape 切替を監視
Constructor
Orientation
()
static
Item Index
Methods
- _checkAspect static
- _checkDegree static
- _experiaZ
- _listenMatchMedia static
- _listenOrientation static
- _onOrientationChange static
- _onRotate static
- abort static
- canOrientation static
- eventType static
- fire static
- init static
- landscape static
- listen static
- portrait static
Properties
- _eventType static
- _handler static
- _mediaQuery static
- _orientation static
Events
- CHANGE_ORIENTATION static
Methods
_experiaZ
()
private
Experia Z(Sony Tablet), portrait / landscape 表示が逆なのでwindow比率で判定する
_listenMatchMedia
()
private
static
_listenOrientation
()
private
static
_onOrientationChange
()
private
static
_onRotate
(
private
static
-
mediaQuery
window.matchMedia listener handler
Parameters:
-
mediaQueryMediaQueryList
abort
()
static
fire
()
static
イベントを強制的に発火させます
init
()
static
landscape
()
static
Orientation.CHANGE_ORIENTATIONをdispatchし directionを "landscape" にします
portrait
()
static
Orientation.CHANGE_ORIENTATIONをdispatchし directionを "portrait" にします
