:right-sidebar: True ScriptMessageReply =================================================================== .. currentmodule:: gi.repository.WebKit .. versionadded:: 2.40 .. class:: ScriptMessageReply(*args, **kwargs) :no-contents-entry: A reply for a script message received. If no reply has been sent by the user, an automatically generated reply with undefined value with be sent. Methods ------- .. rst-class:: interim-class .. class:: ScriptMessageReply :no-index: .. method:: return_error_message(error_message: str) -> None Reply to a script message with an error message. .. versionadded:: 2.40 :param error_message: An error message to return as specified by the user's script message .. method:: return_value(reply_value: ~gi.repository.JavaScriptCore.Value) -> None Reply to a script message with a value. This function can be called twice for passing the reply value in. .. versionadded:: 2.40 :param reply_value: Reply value of the provided script message