EXPORT_API int autofill_auth_info_set_callback(autofill_auth_info_cb callback, void *user_data)
{
+ if (!callback) {
+ LOGW("parameter is NULL");
+ return AUTOFILL_ERROR_INVALID_PARAMETER;
+ }
+
g_autofill_auth_info_cb = callback;
g_autofill_auth_info_data = user_data;
int autofill_auth_info_request(autofill_view_info_h vi);
/**
- * @brief Registers the callback to receive the authentication information.
+ * @brief Sets the callback to receive the authentication information.
* @since_tizen 5.5
* @param[in] callback The callback function to register
* @param[in] user_data The user data to be passed to the callback function
* @return 0 on success, otherwise a negative error value
* @retval #AUTOFILL_ERROR_NONE No error
+ * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
*/
int autofill_auth_info_set_callback(autofill_auth_info_cb callback, void *user_data);
/**
- * @brief Unregisters the callback to receive the authentication information.
+ * @brief Unsets the callback to receive the authentication information.
* @since_tizen 5.5
* @return 0 on success, otherwise a negative error value
* @retval #AUTOFILL_ERROR_NONE No error
int autofill_fill_request(autofill_view_info_h vi);
/**
- * @brief Registers the callback to receive autofill fill response.
+ * @brief Sets the callback to receive autofill fill response.
* @since_tizen 5.5
* @param[in] callback The callback function to register
* @param[in] user_data The user data to be passed to the callback function
* @return 0 on success, otherwise a negative error value
* @retval #AUTOFILL_ERROR_NONE No error
+ * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
*/
int autofill_fill_response_set_callback(autofill_fill_response_cb callback, void *user_data);
/**
- * @brief Unregisters the callback to receive autofill fill response.
+ * @brief Unsets the callback to receive autofill fill response.
* @since_tizen 5.5
* @return 0 on success, otherwise a negative error value
* @retval #AUTOFILL_ERROR_NONE No error