ArSensorManager class

Implemented types

Constructors

ArSensorManager({AttitudeFilter? attitudeFilter, HeadingFilter? headingFilter, LocationFilter? locationFilter, bool smoothAttitude = true, bool smoothLocation = true, LocationSettings? locationSettings, ArSensorBackend backend = const ArSensorBackend()})
Pass a null filter to use the raw sensor values.

Properties

arSensor → Stream<ArSensor>
Stream of fused sensor samples. Must be a broadcast stream if the source is shared between several views. Failures (e.g. permission denied) are reported as ArSensorException stream errors.
no setteroverride
backend → ArSensorBackend
final
hashCode → int
The hash code for this object.
no setterinherited
locationSettings → LocationSettings?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Stops listening and releases resources.
override
init() → void
Idempotent: calling it again (e.g. from several views sharing this manager) does not re-subscribe to the sensors.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
Stops the sensors and the location updates, e.g. while the app is in background, without closing arSensor. ArView does it for the manager it creates; call it yourself on a manager you provide.
resume() → void
Restarts what pause stopped. When the location permission was denied, checks it again (without prompting): the user may have granted it from the system settings meanwhile.
toString() → String
A string representation of this object.
inherited

Operators

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