* @privilege %http://tizen.org/privilege/camera
* @privilege %http://tizen.org/privilege/recorder
* @privilege %http://tizen.org/privilege/appmanager.launch
+ * @privilege %http://tizen.org/privilege/telephony
* @remarks The caller app has to check the return value of this function.\n
* Content categories will be shown as the sequence of using @a attach_panel_add_content_category.\n
* Some contents need time to load it all.\n
* %http://tizen.org/privilege/camera, for using ATTACH_PANEL_CONTENT_CATEGORY_CAMERA or ATTACH_PANEL_CONTENT_CATEGORY_TAKE_PICTURE\n
* %http://tizen.org/privilege/recorder, for using ATTACH_PANEL_CONTENT_CATEGORY_VOICE\n
* %http://tizen.org/privilege/appmanager.launch, for adding content categories on the More tab\n
+ * %http://tizen.org/privilege/telephony, for using ATTACH_PANEL_CONTENT_CATEGORY_CAMERA (Since 5.0)\n
* Deliver more information to the callee with a bundle if you need.\n
* %http://tizen.org/appcontrol/data/total_count\n
* %http://tizen.org/appcontrol/data/total_size
static const char *const PRIVILEGE_CAMERA = "http://tizen.org/privilege/camera";
static const char *const PRIVILEGE_RECORDER = "http://tizen.org/privilege/recorder";
static const char *const PRIVILEGE_APPMANAGER_LAUNCH = "http://tizen.org/privilege/appmanager.launch";
+static const char *const PRIVILEGE_TELEPHONY = "http://tizen.org/privilege/telephony";
EXPORT_API int attach_panel_add_content_category(attach_panel_h attach_panel, attach_panel_content_category_e content_category, bundle *extra_data)
{
content_s *content_info = NULL;
ret = __check_privilege(PRIVILEGE_CAMERA);
retv_if(ret < 0, ATTACH_PANEL_ERROR_PERMISSION_DENIED);
+
+ ret = __check_privilege(PRIVILEGE_TELEPHONY);
+ retv_if(ret < 0, ATTACH_PANEL_ERROR_PERMISSION_DENIED);
break;
case ATTACH_PANEL_CONTENT_CATEGORY_VOICE:
ret = system_info_get_platform_bool(PLATFORM_FEATURE_MICROPHONE, &value);