
public class JsDeviceOrientationEvent extends JsEvent implements DeviceOrientationEvent
AT_TARGET, BEFORECOPY, BEFORECUT, BEFOREPASTE, BLUR, BUBBLING_PHASE, CAPTURING_PHASE, CHANGE, CLICK, CONTEXTMENU, COPY, CUT, DBLCLICK, DRAG, DRAGEND, DRAGENTER, DRAGLEAVE, DRAGOVER, DRAGSTART, DROP, ERROR, FOCUS, FOCUSIN, FOCUSOUT, INPUT, INVALID, KEYDOWN, KEYPRESS, KEYUP, MOUSEDOWN, MOUSEMOVE, MOUSEOUT, MOUSEOVER, MOUSEUP, MOUSEWHEEL, NONE, PASTE, RESIZE, SCROLL, SELECTSTART, SUBMIT, TOUCHCANCEL, TOUCHEND, TOUCHMOVE, TOUCHSTART, WEBKITANIMATIONEND, WEBKITANIMATIONITERATION, WEBKITANIMATIONSTART, WEBKITTRANSITIONENDSVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
JsDeviceOrientationEvent() |
| Modifier and Type | Method and Description |
|---|---|
double |
getAlpha()
The current orientation of the device around the Z axis; that is, how far the device is rotated around a line perpendicular to the device.
|
double |
getBeta()
The current orientation of the device around the X axis; that is, how far the device is tipped forward or backward.
|
double |
getGamma()
The current orientation of the device around the Y axis; that is, how far the device is turned left or right.
|
void |
initDeviceOrientationEvent(String type,
boolean bubbles,
boolean cancelable,
double alpha,
double beta,
double gamma,
boolean absolute) |
boolean |
isAbsolute()
This attribute's value is
true if the orientation is provided as a difference between the device coordinate frame and the Earth coordinate frame; if the device can't detect the Earth coordinate frame, this value is false. |
getClipboardData, getCurrentTarget, getEventPhase, getSrcElement, getTarget, getTimeStamp, getType, initEvent, isBubbles, isCancelable, isCancelBubble, isDefaultPrevented, isReturnValue, preventDefault, setCancelBubble, setReturnValue, stopImmediatePropagation, stopPropagationaddEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPanat, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAtcast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringgetClipboardData, getCurrentTarget, getEventPhase, getSrcElement, getTarget, getTimeStamp, getType, initEvent, isBubbles, isCancelable, isCancelBubble, isDefaultPrevented, isReturnValue, preventDefault, setCancelBubble, setReturnValue, stopImmediatePropagation, stopPropagationintAt, lengthnumberAtpublic final boolean isAbsolute()
DeviceOrientationEventtrue if the orientation is provided as a difference between the device coordinate frame and the Earth coordinate frame; if the device can't detect the Earth coordinate frame, this value is false. Read only.isAbsolute in interface DeviceOrientationEventpublic final double getAlpha()
DeviceOrientationEventgetAlpha in interface DeviceOrientationEventpublic final double getBeta()
DeviceOrientationEventgetBeta in interface DeviceOrientationEventpublic final double getGamma()
DeviceOrientationEventgetGamma in interface DeviceOrientationEventpublic final void initDeviceOrientationEvent(String type, boolean bubbles, boolean cancelable, double alpha, double beta, double gamma, boolean absolute)
initDeviceOrientationEvent in interface DeviceOrientationEventCopyright © 2016. All rights reserved.