Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Pedometer] add Pedometer.stepStream #701

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

LorenzSchueler
Copy link

Currently pedometer only provides one stream for changes in the pedestrian status and one for changes is the step count.
This PR add another stream that yields every time a step is detected. It uses the step detection event channel which is already used by the pedestrian status stream but does not filter the events.
I've tested in on Android and it works. Unfortunately I have no way to test it on ios, but as the event channel on ios seems to return the pedestrian status directly, I assume it will only yield on pedestrian status change and will therefor not work as expected.

@maratbekovaidar
Copy link

Nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants