*/
extern int watch_manager_resume(void);
+/**
+ * @brief Binds watch's window with the window.
+ * @details Watch's window will be shown with the viewer window automatically.
+ * @since_tizen 4.0
+ * @param[in] win Window for the viewer app
+ * @return @c 0 on success, otherwise a negative error value
+ */
+extern int watch_manager_window_bind(Evas_Object *win);
+
+/**
+ * @brief Unbinds watch's window
+ * @details Watch's window will be updated as an image object.
+ * @since_tizen 4.0
+ * @return @c 0 on success, otherwise a negative error value
+ */
+extern int watch_manager_window_unbind(void);
#ifdef __cplusplus
}
static int __default_width;
static int __default_height;
+static screen_connector_toolkit_evas_h __toolkit;
static Evas_Object *__win;
static char *viewer_appid;
ops.added_cb = __screen_connector_toolkit_evas_added_cb;
ops.removed_cb = __screen_connector_toolkit_evas_removed_cb;
ops.updated_cb = __screen_connector_toolkit_evas_updated_cb;
- screen_connector_toolkit_evas_add(&ops, (char *)app_id, SCREEN_CONNECTOR_SCREEEN_TYPE_WATCH, NULL);
+ __toolkit = screen_connector_toolkit_evas_add(&ops, (char *)app_id, SCREEN_CONNECTOR_SCREEEN_TYPE_WATCH, NULL);
app_control_to_bundle(*app_control, &b);
if (b) {
return __change_visibility(true);
}
+API int watch_manager_window_bind(Evas_Object *win)
+{
+ if (!__toolkit || !win)
+ return -1;
+
+ return screen_connector_toolkit_evas_bind(__toolkit, win);
+}
+
+API int watch_manager_window_unbind(void)
+{
+ if (!__toolkit)
+ return -1;
+
+ return screen_connector_toolkit_evas_unbind(__toolkit);
+}