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

[iOS] Sobriety - Motion Sensor Update Rate (ESOB003) #44

Closed
Pierre-CGI opened this issue Apr 5, 2023 · 1 comment
Closed

[iOS] Sobriety - Motion Sensor Update Rate (ESOB003) #44

Pierre-CGI opened this issue Apr 5, 2023 · 1 comment
Assignees
Labels
🏆 challenge 🏆 Work done during the ecoCode Challenge ios Something tied to the iOS

Comments

@Pierre-CGI
Copy link

Using the Core Motion API, your app can receive continuous motion updates in the form of accelerometer, gyroscope, and device motion (rotation, acceleration, and more) events. Yet you don't often need these updates as soon as they are generated. Before registering to receive these recurring motion updates, you can specify an interval that meets your app’s needs, using CMMotionManager#accelerometerUpdateInterval, CMMotionManager#gyroUpdateInterval, CMMotionManager#deviceMotionUpdateInterval and CMMotionManager#magnetometerUpdateInterval properties. The larger the interval, the fewer events are delivered to your app, improving battery life.

@olegoaer olegoaer added ios Something tied to the iOS 🏆 challenge 🏆 Work done during the ecoCode Challenge labels Apr 5, 2023
@zippy1978
Copy link
Contributor

Addressed by #59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏆 challenge 🏆 Work done during the ecoCode Challenge ios Something tied to the iOS
Projects
None yet
Development

No branches or pull requests

3 participants