Chartbreaker
    Preparing search index...

    Interface DeviceMotionEventAcceleration

    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.

    MDN Reference

    interface DeviceMotionEventAcceleration {
        x: null | number;
        y: null | number;
        z: null | number;
    }
    Index

    Properties

    x y z

    Properties

    x: null | number

    The x read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the X axis in a DeviceMotionEventAcceleration object.

    MDN Reference

    y: null | number

    The y read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the Y axis in a DeviceMotionEventAcceleration object.

    MDN Reference

    z: null | number

    The z read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the Z axis in a DeviceMotionEventAcceleration object.

    MDN Reference