MagnetometerResult Record¶
Description¶
Magnetometer 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 uT(micro-Tesla).
The unit of timestamp is second.
x¶
- C
float x
- C++17
float x
- C++03(Deprecated)
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++17
float y
- C++03(Deprecated)
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++17
float z
- C++03(Deprecated)
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++17
double timestamp
- C++03(Deprecated)
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