To use AppControlAction API, the Init() method must be called.
Change-Id: Ieed41a2e529ffdcdf84662c2464d537607981147
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
return -EINVAL;
}
+ if (tizen_cpp::AppControlManager::Init() != 0) return -EIO;
+
return tizen_cpp::AppControlManager::Add(
id, [=](bundle* b) { cb(b, user_data); },
reinterpret_cast<tizen_cpp::AppControlAction**>(h));
return -EINVAL;
}
+ if (tizen_cpp::AppControlManager::Init() != 0) return -EIO;
+
return tizen_cpp::AppControlManager::Remove(
reinterpret_cast<tizen_cpp::AppControlAction*>(h));
}