ArSensorManager constructor
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.
locationSettings configures the position stream (accuracy, distance
filter...), see Geolocator.getPositionStream.
Implementation
ArSensorManager({
AttitudeFilter? attitudeFilter,
HeadingFilter? headingFilter,
LocationFilter? locationFilter,
bool smoothAttitude = true,
bool smoothLocation = true,
this.locationSettings,
this.backend = const ArSensorBackend(),
}) : _attitudeFilter = smoothAttitude
? (attitudeFilter ?? AttitudeFilter())
: null,
_headingFilter = smoothAttitude
? (headingFilter ?? HeadingFilter())
: null,
_locationFilter = smoothLocation
? (locationFilter ?? LocationFilter())
: null;