I have a use case in mind where I would want to perpetually sample the magnetometer at ~3Hz.
I encountered registerSensorDataListener() in my quest to find a way to poll the magnetometer more rapidly than 1Hz. While it's possible with registerSensorDataListener(), it isn't perpetual, which is what I'd need. Furthermore, it's not immediate; an array of values is returned at the end rather than a callback for every value; I can appreciate why it might be implemented that way when the sample rate is quite high.
What are the use cases in mind for 4 seconds max of high-frequency sampling?
Would the SDK developers entertain the idea of a configuration whereby the selected sensors are polled slowly (but higher than 1Hz) indefinitely with immediate callbacks, until unregisterSensorDataListener() is called?