All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
AppFocusService

Detailed Description

Function Documentation

void app_focus_service_subscribe ( AppFocusHandler  handler)

Subscribe to the focus event service. Once subscribed, the handler gets called every time the app focus changes.

Note
In focus events are triggered when the app is no longer covered by a modal window.
Out focus events are triggered when the app becomes covered by a modal window.
Parameters
handlerA callback to be executed on in-focus events.
void app_focus_service_unsubscribe ( void  )

Unscribe from the focus event service. Once unsubscribed, the previously registered handler will no longer be called.

Typedef Documentation

typedef void(* AppFocusHandler)(bool in_focus)

Callback type for focus events.

Parameters
in_focusTrue if the app is in focus, false otherwise.