int watchface_editable_get_cur_data_idx(const watchface_editable_h handle, int *idx);
/**
- * @brief Sets the index of the current data.
- * @since_tizen 5.0
- * @param[in] handle The editable handle
- * @param[in] idx Index
- * @return #WATCHFACE_COMPLICATION_ERROR_NONE if success, other value if failure
- * @retval #WATCHFACE_COMPLICATION_ERROR_NONE Success
- * @retval #WATCHFACE_COMPLICATION_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #WATCHFACE_COMPLICATION_ERROR_NOT_SUPPORTED Not supported
- * @par Sample code:
- * @code
-#include <watchface-editable.h>
-_watchface_editable_update_requested_cb(const watchface_editable_h handle,
- int selected_idx, const watchface_editable_edit_state_e state,
- void *user_data)
-{
- int ret;
- int cur_idx = 1;
-
- ret = watchface_editable_set_cur_data_idx(handle, cur_idx);
- if (ret != WATCHFACE_COMPLICATION_ERROR_NONE)
- return;
-}
- * @endcode
- */
-int watchface_editable_set_cur_data_idx(const watchface_editable_h handle, int idx);
-
-/**
* @brief Gets the id of editable.
* @since_tizen 5.0
* @param[in] handle The editable handle