isAppForegrounded

Determines if the application is in the foreground.

Return

true if the application is in the foreground, otherwise false.