Package-level declarations

Types

Link copied to clipboard
open class DeviceMotionEvent(val type: EventType<DeviceMotionEvent>, init: DeviceMotionEventInit = definedExternally) : Event

The DeviceMotionEvent interface of the Device Orientation Events provides web developers with information about the speed of changes for the device's position and orientation. Available only in secure contexts.

Link copied to clipboard

The DeviceMotionEventAcceleration interface of the Device Orientation Events provides information about the amount of acceleration the device is experiencing along all three axes. Available only in secure contexts.

Link copied to clipboard
Link copied to clipboard

A DeviceMotionEventRotationRate interface of the Device Orientation Events provides information about the rate at which the device is rotating around all three axes. Available only in secure contexts.

Link copied to clipboard
open class DeviceOrientationEvent(val type: EventType<DeviceOrientationEvent>, init: DeviceOrientationEventInit = definedExternally) : Event

The DeviceOrientationEvent interface of the Device Orientation Events provides web developers with information from the physical orientation of the device running the web page. Available only in secure contexts.

Link copied to clipboard

Properties

Link copied to clipboard
external val devicePixelRatio: Double

The devicePixelRatio of Window interface returns the ratio of the resolution in physical pixels to the resolution in CSS pixels for the current display device.