TencentDeviceOrientation class

设备朝向事件。

🍏 iOS / 🔶 Harmony 支持;🅰️ Android 不支持(订阅 TencentLocationManager.onOrientationChanged 时会抛 unsupportedOnThisPlatform)。

Constructors

TencentDeviceOrientation({required double trueHeading, double? magneticHeading, double? accuracy, double? x, double? y, double? z, int? timestamp})
const
TencentDeviceOrientation.fromMap(Map map)
factory

Properties

accuracy double?
精度(偏差最大度数,负数表示无效)。仅 iOS
final
hashCode int
The hash code for this object.
no setterinherited
magneticHeading double?
磁北方向。仅 iOS
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp int?
Unix 毫秒时间戳。
final
trueHeading double
真北方向,范围 [0, 360)。iOS / Harmony 都有。
final
x double?
地磁三轴原始值。仅 iOS
final
y double?
final
z double?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, Object?>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited