Cedric Ferry
Sep 5, 2024

--

Interesting article, good job. I have on suggestion. I think resource usage could be improved by pausing the update/emit when the app goes background (onPause()). In the current implementation, it continues to update every 10ms, emitting data that won't be handled. This can cause battery drain and unnecessary CPU usage.

--

--

Cedric Ferry
Cedric Ferry

Written by Cedric Ferry

Android Developer @ TikTok, ex-Google

No responses yet