toggleScanner

Overrides the default scanner availability for every build.

Before the first call, debuggable builds are enabled and non-debuggable builds are denied. Enabling installs the scanner on eligible resumed activities. Explicitly uninstalled activities stay suppressed until their next resume. Disabling removes every scanner overlay and prevents reinstallation until enabled again. AndroidX Startup callbacks remain registered so resumed activities can be tracked for immediate re-enabling; remove the initializer from the app manifest when no scanner startup or lifecycle work is allowed. This method must be called on the main thread.