int watchface_editable_get_cur_data(const watchface_editable_h handle,
bundle **cur_data);
int watchface_editable_get_cur_data_idx(const watchface_editable_h handle, int *idx);
-int watchface_editable_set_cur_data_idx(const watchface_editable_h handle, int idx);
int watchface_editable_get_editable_id(const watchface_editable_h handle,
int *editable_id);
int watchface_editable_get_geometry(const watchface_editable_h handle,
return WATCHFACE_COMPLICATION_ERROR_NONE;
}
-extern "C" EXPORT_API int watchface_editable_set_cur_data_idx(
- const watchface_editable_h handle, int idx) {
- if (handle == NULL)
- return WATCHFACE_COMPLICATION_ERROR_INVALID_PARAMETER;
-
- IEditable* ie = static_cast<IEditable*>(handle);
- ie->SetCurDataIdx(idx);
- return WATCHFACE_COMPLICATION_ERROR_NONE;
-}
-
extern "C" EXPORT_API int watchface_editable_get_cur_data(
const watchface_editable_h handle, bundle **cur_data) {
if (handle == NULL || cur_data == NULL)