MagnetometerResult Record¶
Description¶
磁力计读数。
x轴正方向从设备中心指向屏幕右部。
y轴正方向从设备中心指向屏幕上部。
z轴正方向从设备中心垂直屏幕向外。
x, y, z单位为uT(微特斯拉)。
timestamp单位为秒。
x¶
- C
float x
- C++17
float x
- C++03
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
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
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
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