The Application Context API contains functions for obtaining information about running applications.
Required Header
#include <app_manager.h>
Overview
Typedef Documentation
Application context handle.
- Since :
- 2.3
Enumeration Type Documentation
Enumeration for Application Context Event.
- Since :
- 2.3
- Enumerator:
APP_CONTEXT_EVENT_LAUNCHED |
The application is launched
|
APP_CONTEXT_EVENT_TERMINATED |
The application is terminated
|
Function Documentation
Clones the application context handle.
- Since :
- 2.3
- Parameters:
-
[out] | clone | The newly created application context handle, if cloning is successful |
[in] | app_context | The application context |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Gets the application ID with the given application context.
- Since :
- 2.3
- Parameters:
-
[in] | app_context | The application context |
[out] | app_id | The application ID of the given application context |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Gets the application ID with the given application context.
- Deprecated:
- Deprecated since 2.3.1. Use app_context_get_app_id() instead.
- Since :
- 2.3
- Parameters:
-
[in] | app_context | The application context |
[out] | package | The application ID of the given application context |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Gets the process ID with the given application context.
- Since :
- 2.3
- Parameters:
-
[in] | app_context | The application context |
[out] | pid | The process ID of the given application context |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Checks whether two application contexts are equal.
- Since :
- 2.3
- Parameters:
-
[in] | lhs | The first application context to compare |
[in] | rhs | The second application context to compare |
[out] | equal | true if the application contexts are equal,
otherwise false if they are not equal |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Checks whether the application with the given application context is terminated.
- Since :
- 2.3
- Parameters:
-
[in] | app_context | The application context |
[out] | terminated | true if the application is terminated,
otherwise false if the application is running |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-