applications
Returns all applications and their foreground state, reusing the activities function.
An application is considered in foreground if ANY of its activities is in foreground.
Key = Package (String) Value = Foreground (Boolean)
Return
Map of packages and whether any activity is in foreground
Parameters
ui Automation
The automation instance used for automated testing