Feature Request
Plugin
Description
Both Accelerometer, Gyroscope and OrientationSensor support a frequency option. My feature request is to support similar functionality in @capacitor/motion
Platform(s)
Web, Android, iOS
Preferred Solution
I have two options:
Motion.addListener('accel', { frequency: 50 }, (event) => {});
or
Motion.setListenerFrequency('accel', 50);
Motion.addListener('accel', (event) => {});
The latter would make more sense when assuming only one 'main' listener is used for the sensors as the frequency would be applied to all listeners for that event.
Feature Request
Plugin
Description
Both Accelerometer, Gyroscope and OrientationSensor support a
frequencyoption. My feature request is to support similar functionality in @capacitor/motionPlatform(s)
Web, Android, iOS
Preferred Solution
I have two options:
or
The latter would make more sense when assuming only one 'main' listener is used for the sensors as the frequency would be applied to all listeners for that event.