Knox Tizen Wearable SDK
|
Settings Manager group provides APIs to manage system settings and management of device features. More...
Enumerations |
Settings Manager group provides APIs to manage system settings and management of device features.
Custom Settings Manager group
This group provides APIs to configure and manage the device settings.
#include <knox_custom.h>
AlwaysOnDisplay state type.
Enumerator | |
---|---|
KNOX_CUSTOM_ALWAYS_ON_DISPLAY_STATE_ON |
Always on display state ON request |
KNOX_CUSTOM_ALWAYS_ON_DISPLAY_STATE_OFF |
Always on display state OFF request |
Definition at line 135 of file knox_custom_settings_manager.h.
Bluetooth state type.
Enumerator | |
---|---|
KNOX_CUSTOM_BT_ON |
Bluetooth ON request |
KNOX_CUSTOM_BT_OFF |
Bluetooth OFF request |
Definition at line 32 of file knox_custom_settings_manager.h.
Airplane mode state type.
Enumerator | |
---|---|
KNOX_CUSTOM_AIRPLANE_MODE_ON |
Airplane mode ON request |
KNOX_CUSTOM_AIRPLANE_MODE_OFF |
Airplane mode OFF request |
Definition at line 102 of file knox_custom_settings_manager.h.
DebugInfo state type.
Enumerator | |
---|---|
KNOX_CUSTOM_DEBUGINFO_STATE_ON |
DebugInfo enable request |
KNOX_CUSTOM_DEBUGINFO_STATE_OFF |
DebugInfo disable request |
Definition at line 124 of file knox_custom_settings_manager.h.
Mobile data roaming state type.
Enumerator | |
---|---|
KNOX_CUSTOM_DATA_ROAMING_ON |
Mobile data roaming mode ON request |
KNOX_CUSTOM_DATA_ROAMING_OFF |
Mobile Data roaming mode OFF request |
Definition at line 77 of file knox_custom_settings_manager.h.
Mobile data state type.
Enumerator | |
---|---|
KNOX_CUSTOM_MOBILE_DATA_ON |
Mobile Data ON request |
KNOX_CUSTOM_MOBILE_DATA_OFF |
Mobile Data OFF request |
Definition at line 43 of file knox_custom_settings_manager.h.
PowerSaving mode state type.
Enumerator | |
---|---|
KNOX_CUSTOM_POWERSAVING_MODE_ON |
Powersaving mode ON request |
KNOX_CUSTOM_POWERSAVING_MODE_OFF |
Powersaving mode OFF request |
Definition at line 113 of file knox_custom_settings_manager.h.
Settings hidden Item type.
Definition at line 88 of file knox_custom_settings_manager.h.
Hide or unhide the given settings elements.
Enumerator | |
---|---|
KNOX_CUSTOM_SETTINGS_HIDE_ON |
To hide the given settings elements |
KNOX_CUSTOM_SETTINGS_HIDE_OFF |
To unhide the given settings elements |
Definition at line 65 of file knox_custom_settings_manager.h.
Wi-Fi state type.
Enumerator | |
---|---|
KNOX_CUSTOM_WIFI_ON |
Wi-Fi ON request |
KNOX_CUSTOM_WIFI_OFF |
Wi-Fi OFF request |
Definition at line 54 of file knox_custom_settings_manager.h.
knox_result_t knox_custom_get_always_on_display_state | ( | int * | always_on_display_state | ) |
API to retrieve the state of Always On Display.
[out] | always_on_display_state | KNOX_CUSTOM_ALWAYS_ON_DISPLAY_STATE_ON: The state of Always On Display is ON KNOX_CUSTOM_ALWAYS_ON_DISPLAY_STATE_OFF: The state of Always On Display is OFF |
KNOX_RESULT_SUCCESS | Successful |
KNOX_RESULT_FAIL | General failure |
KNOX_RESULT_NOT_SUPPORTED | Not supported |
KNOX_RESULT_INVALID_PARAM | Invalid parameter |
KNOX_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function |
knox_result_t knox_custom_get_debuginfo_state | ( | int * | debuginfo_state | ) |
Get the DebugInfo state.
[out] | debuginfo_state | KNOX_CUSTOM_DEBUGINFO_STATE_ON: The state of Debuginfo mode is ON KNOX_CUSTOM_DEBUGINFO_STATE_OFF: The state of Debuginfo mode is OFF |
KNOX_RESULT_SUCCESS | Successful |
KNOX_RESULT_FAIL | General failure |
KNOX_RESULT_NOT_SUPPORTED | Not supported |
KNOX_RESULT_INVALID_PARAM | Invalid parameter |
KNOX_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function |
knox_result_t knox_custom_get_powersaving_mode_state | ( | int * | powersaving_mode_state | ) |
API to retrieve the state of Power saving mode.
[out] | powersaving_mode_state | KNOX_CUSTOM_POWERSAVING_MODE_ON: The state of Power saving mode is ON KNOX_CUSTOM_POWERSAVING_MODE_OFF: The state of Power saving mode is OFF |
KNOX_RESULT_SUCCESS | Successful |
KNOX_RESULT_FAIL | General failure |
KNOX_RESULT_NOT_SUPPORTED | Not supported |
KNOX_RESULT_INVALID_PARAM | Invalid parameter |
KNOX_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function |
knox_result_t knox_custom_get_settings_hidden_items | ( | int * | hidden_items | ) |
API to retrieve a list specifying which settings items are hidden on a wearable device.
[out] | hidden_items | Set of setting elements that are hidden |
KNOX_RESULT_SUCCESS | Successful |
KNOX_RESULT_FAIL | General failure |
KNOX_RESULT_NOT_SUPPORTED | Not supported |
KNOX_RESULT_INVALID_PARAM | Invalid parameter |
knox_custom_data_t* knox_custom_get_watch_face | ( | void | ) |
API to get watchface package name.
knox_result_t knox_custom_set_airplane_mode_state | ( | knox_custom_data_airplane_mode_state_t | value | ) |
API to turn airplane on/off.
[in] | value | KNOX_CUSTOM_AIRPLANE_MODE_ON: Turn ON the airplane mode. KNOX_CUSTOM_AIRPLANE_MODE_OFF: Turn OFF the airplane mode. |
KNOX_RESULT_SUCCESS | Successful |
KNOX_RESULT_FAIL | General failure |
KNOX_RESULT_NOT_SUPPORTED | Not supported if the device does not support knox.custom feature, or if the device is not in Without Phone Connection(WPC) mode. |
KNOX_RESULT_INVALID_PARAM | Invalid parameter |
KNOX_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
knox_result_t knox_custom_set_always_on_display_state | ( | knox_custom_always_on_display_state_t | value | ) |
API to turn Always On Display (AOD) ON or OFF on a device.
[in] | value | KNOX_CUSTOM_ALWAYS_ON_DISPLAY_STATE_ON: Turn on the Always On Display KNOX_CUSTOM_ALWAYS_ON_DISPLAY_STATE_OFF: Turn off the Always On Display. |
KNOX_RESULT_SUCCESS | Successful |
KNOX_RESULT_FAIL | General failure |
KNOX_RESULT_NOT_SUPPORTED | Not supported |
KNOX_RESULT_INVALID_PARAM | Invalid parameter |
KNOX_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
KNOX_RESULT_POLICY_RESTRICTED | Restriction by device policy. |
knox_result_t knox_custom_set_bluetooth_state | ( | knox_custom_bt_state_t | value | ) |
API to turn Bluetooth on/off.
[in] | value | KNOX_CUSTOM_BT_ON: Turn ON the Bluetooth. KNOX_CUSTOM_BT_OFF: Turn OFF the Bluetooth. |
KNOX_RESULT_SUCCESS | Successful |
KNOX_RESULT_FAIL | General failure |
KNOX_RESULT_NOT_SUPPORTED | Not supported |
KNOX_RESULT_NOW_IN_PROGRESS | Bluetooth adapter busy (enabling/disabling in progress) |
KNOX_RESULT_INVALID_PARAM | Invalid parameter |
KNOX_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
knox_result_t knox_custom_set_data_roaming_state | ( | knox_custom_data_roaming_state_t | value | ) |
API to turn data roaming on/off.
[in] | value | KNOX_CUSTOM_DATA_ROAMING_ON: Turn data roaming on. KNOX_CUSTOM_DATA_ROAMING_OFF: Turn data data roaming off. |
KNOX_RESULT_SUCCESS | Successful |
KNOX_RESULT_FAIL | General failure |
KNOX_RESULT_NOT_SUPPORTED | Not supported |
KNOX_RESULT_INVALID_PARAM | Invalid parameter |
KNOX_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
knox_result_t knox_custom_set_debuginfo_state | ( | knox_custom_data_debuginfo_state_t | value | ) |
API to turn ON or OFF the DebugInfo setting on the device.
[in] | value | KNOX_CUSTOM_DEBUGINFO_STATE_ON: Turn ON the DebugInfo state. KNOX_CUSTOM_DEBUGINFO_STATE_OFF: Turn OFF the DebugInfo state. |
KNOX_RESULT_SUCCESS | Successful |
KNOX_RESULT_FAIL | General failure |
KNOX_RESULT_NOT_SUPPORTED | Not supported |
KNOX_RESULT_INVALID_PARAM | Invalid parameter |
KNOX_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function |
KNOX_RESULT_POLICY_RESTRICTED | Restriction by device policy. |
knox_result_t knox_custom_set_mobile_data_state | ( | knox_custom_mobile_data_state_t | value | ) |
API to turn mobile data on/off.
[in] | value | KNOX_CUSTOM_MOBILE_DATA_ON: Turn mobile data on. KNOX_CUSTOM_MOBILE_DATA_OFF: Turn mobile data off. |
KNOX_RESULT_SUCCESS | Successful |
KNOX_RESULT_FAIL | General failure |
KNOX_RESULT_NOT_SUPPORTED | Not supported |
KNOX_RESULT_INVALID_PARAM | Invalid parameter |
KNOX_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
knox_result_t knox_custom_set_powersaving_mode_state | ( | knox_custom_powersaving_mode_state_t | value | ) |
API to turn Power saving mode on/off on a device.
[in] | value | KNOX_CUSTOM_POWERSAVING_MODE_ON: Turn on the Power saving mode. KNOX_CUSTOM_POWERSAVING_MODE_OFF: Turn off the Power saving mode. |
KNOX_RESULT_SUCCESS | Successful |
KNOX_RESULT_FAIL | General failure |
KNOX_RESULT_NOT_SUPPORTED | Not supported |
KNOX_RESULT_INVALID_PARAM | Invalid parameter |
KNOX_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
KNOX_RESULT_POLICY_RESTRICTED | Restriction by device policy. |
knox_result_t knox_custom_set_settings_hidden_items | ( | knox_custom_settings_hide_state_t | state, |
knox_custom_setting_hidden_items_t | elements | ||
) |
API to hide specific settings items on a Samsung Galaxy Watch device.
[in] | state | The state parameter is used to hide or unhide the given elements |
[in] | elements | The elements field will specify the items from the below group to hide in settings KNOX_CUSTOM_SETTINGS_HIDE_DISPLAY: Hide Display Settings KNOX_CUSTOM_SETTINGS_HIDE_SOUND: Hide Sound Settings KNOX_CUSTOM_SETTINGS_HIDE_CONNECTION: Hide Connection Settings KNOX_CUSTOM_SETTINGS_HIDE_GEAR_INFO: Hide Galaxy Watch Info KNOX_CUSTOM_SETTINGS_HIDE_ALL: Hide all the above elments |
KNOX_RESULT_SUCCESS | Successful |
KNOX_RESULT_FAIL | General failure |
KNOX_RESULT_NOT_SUPPORTED | Not supported |
KNOX_RESULT_INVALID_PARAM | Invalid parameter |
KNOX_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
knox_result_t knox_custom_set_watch_face | ( | const char * | clockpackagename_main, |
const char * | clockpackagename_sub | ||
) |
API to set a specific package as a watch face.
[in] | clockpackagename_main | The mainkey name to set as watchface. |
[in] | clockpackagename_sub | The subkey name to set as watchface. |
KNOX_RESULT_SUCCESS | Successful |
KNOX_RESULT_FAIL | General failure |
KNOX_RESULT_NOT_SUPPORTED | Not supported |
KNOX_RESULT_INVALID_PARAM | Invalid parameters |
KNOX_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
KNOX_RESULT_POLICY_RESTRICTED | Restriction by device policy. |
knox_result_t knox_custom_set_wifi_state | ( | knox_custom_wifi_state_t | value | ) |
API to turn Wi-Fi on/off.
[in] | value | KNOX_CUSTOM_WIFI_ON: Turn on Wi-Fi. KNOX_CUSTOM_WIFI_OFF: Turn off Wi-Fi. |
KNOX_RESULT_SUCCESS | Successful |
KNOX_RESULT_FAIL | General failure |
KNOX_RESULT_NOT_SUPPORTED | Not supported |
KNOX_RESULT_INVALID_PARAM | Invalid parameter |
KNOX_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
knox_result_t knox_custom_widget_board_add_widget | ( | const char * | widget_id | ) |
API to add a widget into the Home application widget board favorites list. For more about widgets, see Widgets.
[in] | widget_id | System level unique widget id |
KNOX_RESULT_SUCCESS | Successful |
KNOX_RESULT_FAIL | General failure |
KNOX_RESULT_NOT_SUPPORTED | Not supported |
KNOX_RESULT_INVALID_PARAM | Invalid parameter |
KNOX_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
KNOX_RESULT_POLICY_RESTRICTED | Restriction by device policy. |
KNOX_RESULT_WIDGET_OVER_MAX_COUNT | widget board favorites list is full |
KNOX_RESULT_WIDGET_ALREADY_ADDED | widget has been added to the board already |
knox_custom_data_t* knox_custom_widget_board_get_widgets | ( | void | ) |
API to get current list of Home application widget board favorites.
KNOX_RESULT_SUCCESS | Successful |
KNOX_RESULT_FAIL | General failure |
KNOX_RESULT_NOT_SUPPORTED | Not supported |
knox_result_t knox_custom_widget_board_remove_widgets | ( | void | ) |
API to clear the favorites list of Home application widget board.
KNOX_RESULT_SUCCESS | Successful |
KNOX_RESULT_FAIL | General failure |
KNOX_RESULT_NOT_SUPPORTED | Not supported |
KNOX_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function |
KNOX_RESULT_POLICY_RESTRICTED | Restriction by device policy |