typedef void (*ime_prediction_hint_set_cb)(const char *prediction_hint, void *user_data);
/**
- * @brief Called to set the mime type to deliver to the input panel.
+ * @brief Called when an associated text input UI control requests the text entry to set the MIME type.
*
* @since_tizen 4.0
*
*
* @privilege %http://tizen.org/privilege/ime
*
- * @remarks This function is used by the applications to deliver the mime type to the input panel.
+ * @remarks @a mime_type is valid only in the callback. To use outside the callback, make a copy.
+ * This function is used by the applications to deliver the MIME type to the input panel.
*
- * @param[in] mime_type The mime type to be set to the input panel
+ * @param[in] mime_type The MIME type to be set to the input panel
* @param[in] user_data User data to be passed to the callback function
*
- * @pre The callback can be registered using ime_event_set_mime_type_cb() function.
+ * @pre The callback can be registered using ime_event_set_mime_type_set_cb() function.
*
- * @see ime_event_set_mime_type_cb()
+ * @see ime_event_set_mime_type_set_cb()
*/
typedef void (*ime_mime_type_set_cb)(const char *mime_type, void *user_data);
*
* @privilege %http://tizen.org/privilege/ime
*
- * @remarks The ime_mime_type_set_cb() callback function is called to set the mime type to deliver to the input panel.
+ * @remarks The ime_mime_type_set_cb() callback function is called when an associated text input
+ * UI control requests the text entry to set the MIME type.
*
* @param[in] callback_func @c mime_type_set event callback function
* @param[in] user_data User data to be passed to the callback function
* @see ime_mime_type_set_cb()
* @see ime_run()
*/
-int ime_event_set_mime_type_cb(ime_mime_type_set_cb callback_func, void *user_data);
+int ime_event_set_mime_type_set_cb(ime_mime_type_set_cb callback_func, void *user_data);
/**
* @brief Sends a private command to the associated text input UI control.
int ime_send_private_command(const char *command);
/**
- * @brief Commit a content such as image to the associated text input UI control.
+ * @brief Commits contents such as image to the associated text input UI control.
*
* @since_tizen 4.0
*
*
* @param[in] content The content URI to be sent
* @param[in] description The content description
- * @param[in] mime_types The MIME types
+ * @param[in] mime_type The MIME type received from the ime_mime_type_set_cb()
*
* @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
+ *
+ * @see ime_mime_type_set_cb()
+ * @see ime_event_set_mime_type_set_cb()
*/
-int ime_commit_content(const char *content, const char *description, const char *mime_types);
+int ime_commit_content(const char *content, const char *description, const char *mime_type);
/**
* @brief Request to set floating mode or not.
return IME_ERROR_NONE;
}
-EXPORT_API int ime_commit_content(const char *content, const char *description, const char *mime_types)
+EXPORT_API int ime_commit_content(const char *content, const char *description, const char *mime_type)
{
ime_error_e retVal = IME_ERROR_NONE;
- if (!content || !description || !mime_types) {
+ if (!content || !description || !mime_type) {
LOGW("IME_ERROR_INVALID_PARAMETER");
return IME_ERROR_INVALID_PARAMETER;
}
return retVal;
}
- g_core.commit_content(content, description, mime_types);
+ g_core.commit_content(content, description, mime_type);
return IME_ERROR_NONE;
}
return IME_ERROR_NONE;
}
-EXPORT_API int ime_event_set_mime_type_cb(ime_mime_type_set_cb callback_func, void *user_data)
+EXPORT_API int ime_event_set_mime_type_set_cb(ime_mime_type_set_cb callback_func, void *user_data)
{
ime_error_e retVal = IME_ERROR_NONE;