*/
EXPORT_API int ime_manager_get_enabled_ime_count(void);
+/**
+ * @brief Requests to pre-launch the IME.
+ * @details The developers can use this function to launch IME on On-demand mode.
+ * @since_tizen 5.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/imemanager
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #IME_MANAGER_ERROR_NONE No error
+ * @retval #IME_MANAGER_ERROR_PERMISSION_DENIED The application does not have the privilege to call this function
+ * @retval #IME_MANAGER_ERROR_OPERATION_FAILED Operation failed
+ */
+EXPORT_API int ime_manager_prelaunch_ime(void);
+
/**
* @}
return enable_ime_count;
}
+
+int ime_manager_prelaunch_ime(void)
+{
+ ime_manager_error_e retVal = IME_MANAGER_ERROR_NONE;
+
+ retVal = _check_privilege();
+ if (retVal != IME_MANAGER_ERROR_NONE) {
+ return retVal;
+ }
+
+ int ret = isf_control_prelaunch_ise();
+ if (ret < 0) {
+ return IME_MANAGER_ERROR_OPERATION_FAILED;
+ }
+
+ return IME_MANAGER_ERROR_NONE;
+}