onForegroundAppChanged

fun onForegroundAppChanged(packageName: String)

Reacts to a foreground app change by showing or hiding the overlay based on the per-app configuration and global settings.