AccelerometerResult Record

Description

Accelerometer reading.

The positive direction of x-axis is from the device center to its right side of the screen.

The positive direction of y-axis is from the device center to its top side of the screen.

The positive direction of z-axis is from the device center perpendicular to the screen outward.

The unit of x, y, z is m/s^2.

The unit of timestamp is second.

x

C

float x

C++

float x

Java

public float x

Kotlin

public Float x

Objective-C

@property (nonatomic) float x

Swift

public var x: Float

C#

public float x

y

C

float y

C++

float y

Java

public float y

Kotlin

public Float y

Objective-C

@property (nonatomic) float y

Swift

public var y: Float

C#

public float y

z

C

float z

C++

float z

Java

public float z

Kotlin

public Float z

Objective-C

@property (nonatomic) float z

Swift

public var z: Float

C#

public float z

timestamp

C

double timestamp

C++

double timestamp

Java

public double timestamp

Kotlin

public Double timestamp

Objective-C

@property (nonatomic) double timestamp

Swift

public var timestamp: Double

C#

public double timestamp