We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6c5941 commit fa6072aCopy full SHA for fa6072a
1 file changed
packages/pedometer/lib/pedometer.dart
@@ -24,6 +24,11 @@ class Pedometer {
24
return stream;
25
}
26
27
+ /// Returns every time a step is detected.
28
+ /// This works only on Android. On IOS is will only return if the [PedestrianStatus] changes.
29
+ static Stream<void> get stepStream =>
30
+ _stepDetectionChannel.receiveBroadcastStream();
31
+
32
/// Transformed stream for the Android platform
33
static Stream<PedestrianStatus> _androidStream(
34
Stream<PedestrianStatus> stream) {
0 commit comments