absoluteOrientation method
Stream<AbsoluteOrientationEvent>
absoluteOrientation({
- Duration samplingPeriod = SensorInterval.normalInterval,
The current absolute orientation of the device.
Implementation
Stream<AbsoluteOrientationEvent> absoluteOrientation({
Duration samplingPeriod = SensorInterval.normalInterval,
}) {
_absoluteOrientationEvents ??= _absoluteOrientationChannel.receiveBroadcastStream().map((dynamic event) => AbsoluteOrientationEvent.fromList(event.cast<double>()));
_setSensorUpdateInterval(SensorType.absoluteOrientation,samplingPeriod);
return _absoluteOrientationEvents!;
}