* @par Sample code:
* @code
#include <watchface-complication-provider.h>
-int _watchface_complication_provider_update_requested_cb(const char *provider_id,
+void _watchface_complication_provider_update_requested_cb(const char *provider_id,
const char *req_appid, watchface_complication_type_e type,
const bundle *context, bundle *shared_data, void *user_data)
{
* @par Sample code:
* @code
#include <watchface-complication-provider.h>
-int _watchface_complication_provider_update_requested_cb(const char *provider_id,
+void _watchface_complication_provider_update_requested_cb(const char *provider_id,
const char *req_appid, watchface_complication_type_e type,
const bundle *context, bundle *shared_data, void *user_data)
{
* @par Sample code:
* @code
#include <watchface-complication-provider.h>
-int _watchface_complication_provider_update_requested_cb(const char *provider_id,
+void _watchface_complication_provider_update_requested_cb(const char *provider_id,
const char *req_appid, watchface_complication_type_e type,
const bundle *context, bundle *shared_data, void *user_data)
{
* @par Sample code:
* @code
#include <watchface-complication-provider.h>
-int _watchface_complication_provider_update_requested_cb(const char *provider_id,
+void _watchface_complication_provider_update_requested_cb(const char *provider_id,
const char *req_appid, watchface_complication_type_e type,
const bundle *context, bundle *shared_data, void *user_data)
{
* @par Sample code:
* @code
#include <watchface-complication-provider.h>
-int _watchface_complication_provider_update_requested_cb(const char *provider_id,
+void _watchface_complication_provider_update_requested_cb(const char *provider_id,
const char *req_appid, watchface_complication_type_e type,
const bundle *context, bundle *shared_data, void *user_data)
{
* @par Sample code:
* @code
#include <watchface-complication-provider.h>
-int _watchface_complication_provider_update_requested_cb(const char *provider_id,
+void _watchface_complication_provider_update_requested_cb(const char *provider_id,
const char *req_appid, watchface_complication_type_e type,
const bundle *context, bundle *shared_data, void *user_data)
{
* @par Sample code:
* @code
#include <watchface-complication-provider.h>
-int _watchface_complication_provider_update_requested_cb(const char *provider_id,
+void _watchface_complication_provider_update_requested_cb(const char *provider_id,
const char *req_appid, watchface_complication_type_e type,
const bundle *context, bundle *shared_data, void *user_data)
{
* @par Sample code:
* @code
#include <watchface-complication-provider.h>
-int _watchface_complication_provider_update_requested_cb(const char *provider_id,
+void _watchface_complication_provider_update_requested_cb(const char *provider_id,
const char *req_appid, watchface_complication_type_e type,
const bundle *context, bundle *shared_data, void *user_data)
{
* @par Sample code:
* @code
#include <watchface-complication-provider.h>
-int _watchface_complication_provider_update_requested_cb(const char *provider_id,
+void _watchface_complication_provider_update_requested_cb(const char *provider_id,
const char *req_appid, watchface_complication_type_e type,
const bundle *context, bundle *shared_data, void *user_data)
{
* @par Sample code:
* @code
#include <watchface-complication.h>
-_watchface_editable_edit_ready_cb(editable_container_h handle,
+void _watchface_editable_edit_ready_cb(editable_container_h handle,
const char *editor_appid, void *user_data)
{
watchface_editable_geo_h geo;
* @par Sample code:
* @code
#include <watchface-complication.h>
-_watchface_editable_edit_ready_cb(editable_container_h handle,
+void _watchface_editable_edit_ready_cb(editable_container_h handle,
const char *editor_appid, void *user_data)
{
watchface_editable_geo_h geo;
* @par Sample code:
* @code
#include <watchface-editable.h>
-_watchface_editable_edit_ready_cb(watchface_editable_container_h handle,
+void _watchface_editable_edit_ready_cb(watchface_editable_container_h handle,
const char *editor_appid, void *user_data)
{
watchface_editable_geo_h geo;
* @par Sample code:
* @code
#include <watchface-editable.h>
-_watchface_editable_edit_ready_cb(watchface_editable_container_h handle,
+void _watchface_editable_edit_ready_cb(watchface_editable_container_h handle,
const char *editor_appid, void *user_data)
{
int comp_id = 1;
- complication_h comp;
watchface_editable_geo_h geo;
- // create complication
- watchface_complication_create(,,,&comp);
-
- // set geometry
watchface_editable_geometry_create(&geo);
watchface_editable_geometry_set(geo, 50, 50, 100, 100);
+
+ // add the created complication
watchface_editable_add_complication(handle, comp_id, comp, geo);
watchface_editable_geometry_destroy(geo);
* @par Sample code:
* @code
#include <watchface-editable.h>
-_watchface_editable_edit_ready_cb(watchface_editable_container_h handle,
+void _watchface_editable_edit_ready_cb(watchface_editable_container_h handle,
const char *editor_appid, void *user_data)
{
int comp_id = 1;
int design_element_id = 2;
- complication_h comp;
bundle *design_element;
complication_candidates_list_h candidates_list = NULL;
watchface_editable_geo_h geo;