Implementors are notified when the app becomes the foreground app and when it
is no longer the foreground app. This notification is useful for hiding and
showing transient UI like palette windows which should be hidden when the app
is in the background.