onAppForeground

fun onAppForeground(context: Context, pkg: String)(source)

Called when a monitored app comes to foreground. Checks if app is locked and shows lock overlay if needed.

Parameters

context

Application context

pkg

Package name of the app coming to foreground