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

uiAutomation

The automation instance used for automated testing