*/
int app_info_get_app_component_type(app_info_h app_info, app_info_app_component_type_e *type);
+/**
+ * @brief Checks whether application supports ambient mode.
+ * @since_tizen 3.0
+ * @param[in] app_info The application information
+ * @param[out] support_ambient @c true if the application support ambient mode, \n
+ * otherwise @c false
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #APP_MANAGER_ERROR_NONE Successful
+ * @retval #APP_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
+ */
+int app_info_is_support_ambient(app_info_h app_info, bool *support_ambient);
+
#ifdef __cplusplus
}
#endif
return APP_MANAGER_ERROR_NONE;
}
+API int app_info_is_support_ambient(app_info_h app_info, bool *support_ambient)
+{
+ bool val;
+
+ if (app_info == NULL || support_ambient == NULL)
+ return app_manager_error(APP_MANAGER_ERROR_INVALID_PARAMETER, __FUNCTION__, NULL);
+
+ if (pkgmgrinfo_appinfo_is_support_ambient(app_info->pkg_app_info, &val) < 0)
+ return app_manager_error(APP_MANAGER_ERROR_INVALID_PARAMETER, __FUNCTION__, NULL);
+
+ *support_ambient = val;
+ return APP_MANAGER_ERROR_NONE;
+}
+
API int app_info_clone(app_info_h *clone, app_info_h app_info)
{
app_info_h info;