---
title: "DeviceMotionEventAcceleration | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# 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](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration)

interface DeviceMotionEventAcceleration {  
    [x](#x): number | null;  
    [y](#y): number | null;  
    [z](#z): number | null;  
}

##### Index

### Properties[](#properties)

[x](#x) [y](#y) [z](#z)

## Properties[](#properties-1)

### `Readonly`x[](#x)

x: number | null

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](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/x)

### `Readonly`y[](#y)

y: number | null

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](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/y)

### `Readonly`z[](#z)

z: number | null

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](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/z)
