CompassEvent class

Constructors

CompassEvent.fromList(List<double>? data)
Reads the platform payload: [heading, headingForCameraMode, accuracy], followed by the 9 values of rotationMatrix when available, then by the orientation (an index of DeviceOrientation.values, -1 when unknown). Payloads without the orientation (3 or 12 values) are still read.

Properties

accuracy → double?
final
hashCode → int
The hash code for this object.
no setterinherited
heading → double?
final
headingForCameraMode → double?
final
orientation → DeviceOrientation?
Orientation of the UI, which rotationMatrix is relative to. Null when unknown, or when the platform side predates it.
final
rotationMatrix → List<double>?
Device attitude, see ArSensor.rotationMatrix. Null when the platform cannot provide it (e.g. no motion sensors on a simulator).
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.
inherited