Source code
Revision control
Copy as Markdown
Other Tools
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
partial interface Window {
[SecureContext] attribute EventHandler ondeviceorientation;
};
[Exposed=Window, SecureContext]
interface DeviceOrientationEvent : Event {
constructor(DOMString type, optional DeviceOrientationEventInit eventInitDict = {});
readonly attribute double? alpha;
readonly attribute double? beta;
readonly attribute double? gamma;
readonly attribute boolean absolute;
static Promise<PermissionState> requestPermission(optional boolean absolute = false);
};
dictionary DeviceOrientationEventInit : EventInit {
double? alpha = null;
double? beta = null;
double? gamma = null;
boolean absolute = false;
};
partial interface Window {
[SecureContext] attribute EventHandler ondeviceorientationabsolute;
};
[Exposed=Window, SecureContext]
interface DeviceMotionEventAcceleration {
readonly attribute double? x;
readonly attribute double? y;
readonly attribute double? z;
};
[Exposed=Window, SecureContext]
interface DeviceMotionEventRotationRate {
readonly attribute double? alpha;
readonly attribute double? beta;
readonly attribute double? gamma;
};
partial interface Window {
[SecureContext] attribute EventHandler ondevicemotion;
};
[Exposed=Window, SecureContext]
interface DeviceMotionEvent : Event {
constructor(DOMString type, optional DeviceMotionEventInit eventInitDict = {});
readonly attribute DeviceMotionEventAcceleration? acceleration;
readonly attribute DeviceMotionEventAcceleration? accelerationIncludingGravity;
readonly attribute DeviceMotionEventRotationRate? rotationRate;
readonly attribute double interval;
static Promise<PermissionState> requestPermission();
};
dictionary DeviceMotionEventAccelerationInit {
double? x = null;
double? y = null;
double? z = null;
};
dictionary DeviceMotionEventRotationRateInit {
double? alpha = null;
double? beta = null;
double? gamma = null;
};
dictionary DeviceMotionEventInit : EventInit {
DeviceMotionEventAccelerationInit acceleration;
DeviceMotionEventAccelerationInit accelerationIncludingGravity;
DeviceMotionEventRotationRateInit rotationRate;
double interval = 0;
};