ScreenMonitoringNotifier uses a timer with a specific timeInterval - default is 1 second - to check whether any screen is potentially being monitored. Potentially being monitored includes active screen recordings and the use of external displays.
Use ScreenMonitoringNotifier.shared
to send out notifications or instantiate your own ScreenMonitoringNotifier
to use callbacks.