EXPORT_API int ime_commit_content(const char *content, const char *description, const char *mime_types);
/**
+ * @brief Request to set floating mode or not.
+ *
+ * @since_tizen 4.0
+ *
+ * @privlevel public
+ *
+ * @privilege %http://tizen.org/privilege/ime
+ *
+ * @param[in] floating_mode Floating mode or not
+ *
+ * @return 0 on success, otherwise a negative error value
+ * @retval #IME_ERROR_NONE No error
+ * @retval #IME_ERROR_PERMISSION_DENIED The application does not have the privilege to call this function
+ * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet
+ */
+EXPORT_API int ime_set_floating_mode(bool floating_mode);
+
+/**
* @}
*/
return IME_ERROR_NONE;
}
+
+int ime_set_floating_mode(bool floating_mode)
+{
+ ime_error_e retVal = IME_ERROR_NONE;
+
+ if (!g_running) {
+ LOGW("IME_ERROR_NOT_RUNNING");
+ return IME_ERROR_NOT_RUNNING;
+ }
+
+ retVal = _check_privilege();
+ if (retVal != IME_ERROR_NONE) {
+ LOGE("_check_privilege returned %d.", retVal);
+ return retVal;
+ }
+
+ g_core.set_floating_mode(floating_mode);
+
+ return IME_ERROR_NONE;
+}