return WATCH_HOLDER_ERROR_NONE;
}
+
+C_EXPORT int watch_set_block_update(watch_h watch, bool enable) {
+ Watch* w = reinterpret_cast<Watch*>(watch);
+ if (w == nullptr)
+ return WATCH_HOLDER_ERROR_INVALID_PARAMETER;
+
+ w->BlockUpdate(enable);
+
+ return WATCH_HOLDER_ERROR_NONE;
+}
\ No newline at end of file
int watch_cancel_touch(watch_h watch);
+int watch_block_update(watch_h watch, bool enable);
+
#ifdef __cplusplus
}
return aul_terminate_pid(pid_);
}
+void Watch::BlockUpdate(bool enable) {
+ RemoteSurface::SetBlock(enable);
+}
+
void Watch::OnAuxMsg(void *data, Evas_Object *o, void *ev_info) {
Watch* wa = (Watch*)data;
Elm_Win_Aux_Message *msg = (Elm_Win_Aux_Message *)ev_info;
int GetRid() const ;
tizen_base::Bundle GetExtra() override;
bool IsFaulted() override;
+ void BlockUpdate(bool enable);
private:
void OnEvasAdded(const std::string& appId, const std::string& instId,