I'm currently working on a project (for Android), in which I need to get noticed about screen state ON/OFF even if my Flutter App is closed and user click "Back" button that kills my main activity.
Is it possible somehow to isolate this stream screen state and config listener(?) that could work not only with app main activity?
Thank's for any help or advice how to achieve that.
Description
I'm currently working on a project (for Android), in which I need to get noticed about screen state ON/OFF even if my Flutter App is closed and user click "Back" button that kills my main activity.
Is it possible somehow to isolate this stream screen state and config listener(?) that could work not only with app main activity?
Thank's for any help or advice how to achieve that.