The System Information API provides functions which can be used to obtain device information. This section provides more information about the System Information API.
Required Header
#include <system_info.h>
Overview
The System Information API provides functions which can be used to obtain system information such as the device API and platform versions, device model number, supported device features, and device screen dimensions. The available system information is stored in key/value pairs. Depending on their respective keys, values can have different data types. The keys for the platform functions are specified by the Tizen platform and can be seen here. The keys for the custom functions are specified by OEM's and vendors. Developers should check with their OEM's Tizen OS support if they wish to use a custom function.
Enumeration Type Documentation
Enumeration for system information error codes.
- Enumerator:
SYSTEM_INFO_ERROR_NONE |
Successful
|
SYSTEM_INFO_ERROR_INVALID_PARAMETER |
Invalid parameter
|
SYSTEM_INFO_ERROR_OUT_OF_MEMORY |
Out of memory
|
SYSTEM_INFO_ERROR_IO_ERROR |
An input/output error occurred when reading value from system
|
SYSTEM_INFO_ERROR_PERMISSION_DENIED |
No permission to use the API
|
SYSTEM_INFO_ERROR_NOT_SUPPORTED |
Not supported parameter (Since 3.0)
|
Function Documentation
Gets the boolean value of the custom feature.
- Since :
- 2.3
- Parameters:
-
[in] | key | The name of the custom feature to get. NOTE: This custom function uses a custom key which is provided by OEM's |
[out] | value | The value of the given custom feature |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Gets the double value of the custom feature.
- Since :
- 2.3
- Parameters:
-
[in] | key | The name of the custom feature to get. NOTE: This custom function uses a custom key which is provided by OEM's |
[out] | value | The value of the given custom feature |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Gets the integer value of the custom feature.
- Since :
- 2.3
- Parameters:
-
[in] | key | The name of the custom feature to get. NOTE: This custom function uses a custom key which is provided by OEM's |
[out] | value | The value of the given custom feature |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Gets the string value of the custom feature.
- Since :
- 2.3
- Parameters:
-
[in] | key | The name of the custom feature to get. NOTE: This custom function uses a custom key which is provided by OEM's |
[out] | value | The value of the given custom feature |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Gets the boolean value of the platform feature.
- Since :
- 2.3
- Parameters:
-
[in] | key | The name of the platform feature to get |
[out] | value | The value of the given platform feature |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Gets the double value of the platform feature.
- Since :
- 2.3
- Parameters:
-
[in] | key | The name of the platform feature to get |
[out] | value | The value of the given platform feature |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Gets the integer value of the platform feature.
- Since :
- 2.3
- Parameters:
-
[in] | key | The name of the platform feature to get |
[out] | value | The value of the given platform feature |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Gets the string value of the platform feature.
- Since :
- 2.3
- Parameters:
-
[in] | key | The name of the platform feature to get |
[out] | value | The value of the given platform feature |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-