appInBackground(): Difference between revisions
From Engineering Client Portal
(Created page with "{{Breadcrumb|}} {{Breadcrumb|Digital}} {{Breadcrumb|Android SDK API Reference}} {{CurrentBreadcrumb}} Category:Digital Category:Android SDK API Reference This API is u...") |
(No difference)
|
Latest revision as of 07:34, 21 May 2017
This API is used to capture the event of app going to background (when the application leaves foreground).
Syntax
public void appInBackground(Context context)
Input Parameters
Parameter | Description |
---|---|
android.content.Context | A valid context object must be passed in-order to get the expected behavior. This should not be a NULL context reference. |
Output Parameters
Output Parameters (Return value) | Description |
---|---|
void |
Notes
In order to use this API, manually implement the logic for background detection of the app and trigger this API accordingly.