*/
extern int watch_manager_cancel_click_event(Evas_Object *watch);
+/**
+ * @brief Changes the policy for sending visibilities
+ * @details If you turn off, the framework will not send visibility events automatically.
+ * @since_tizen 4.0
+ * @remarks By default, it is enabled
+ * @param[in] enable Whether it should be enabled or not
+ * @return @c 0 on success, otherwise a negative error value
+ */
+extern int watch_manager_change_auto_visibility(bool enable);
+
+/**
+ * @brief Sends a paused event to the display server.
+ * @details It sends a paused event to the display server so that it can pass on the watch application.
+ * @since_tizen 4.0
+ * @return @c 0 on success, otherwise a negative error value
+ */
+extern int watch_manager_pause(void);
+
+/**
+ * @brief Sends a resumed event to the display server.
+ * @details It sends a resumed event to the display server so that it can pass on the watch application.
+ * @since_tizen 4.0
+ * @return @c 0 on success, otherwise a negative error value
+ */
+extern int watch_manager_resume(void);
+
+
#ifdef __cplusplus
}
#endif
{
return screen_connector_toolkit_evas_send_touch_cancel(watch);
}
+
+API int watch_manager_change_auto_visibility(bool enable)
+{
+ if (!enable)
+ screen_connector_toolkit_evas_stop_visibility_notify();
+ else
+ screen_connector_toolkit_evas_start_visibility_notify();
+
+ return 0;
+}
+
+static int __change_visibility(bool visible)
+{
+ Evas_Object *image;
+
+ image = evas_object_data_get(__win, "tbm,watch");
+ if (image == NULL) {
+ _E("Failed to get image");
+ return -1;
+ }
+
+ if (visible) {
+ return screen_connector_toolkit_evas_send_visibility(image,
+ VISIBILITY_TYPE_UNOBSCURED);
+ } else {
+ return screen_connector_toolkit_evas_send_visibility(image,
+ VISIBILITY_TYPE_FULLY_OBSCURED);
+ }
+}
+
+API int watch_manager_pause(void)
+{
+ return __change_visibility(false);
+}
+
+API int watch_manager_resume(void)
+{
+ return __change_visibility(true);
+}
+
+