CompassData class
Data obtained from the terminal's compass.
端末のコンパスから取得されたデータ。
- Annotations
Constructors
- CompassData({required double? heading, required double? headingForCameraMode, required double? accuracy})
-
Data obtained from the terminal's compass.
const
Properties
- accuracy → double?
-
The deviation error, in degrees, plus or minus from the heading.
NOTE: for iOS this is computed by the platform and is reliable. For Android several values are hard-coded, and the true error could be more . or less than the value here.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- heading → double?
-
The heading, in degrees, of the device around its Z axis, or where the top of the device is pointing.
final
- headingForCameraMode → double?
-
The heading, in degrees, of the device around its X axis, or where the back of the device is pointing.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override