3.15 <WebKitScriptMessageReply>

Structure: <WebKitScriptMessageReply>

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.

Procedures

Method: script-message-reply:ref self ⇒ %return
Method: ref self ⇒ %return

Atomically increments the reference count of self by one.

self

Passed: a <WebKitScriptMessageReply>.

A <WebKitScriptMessageReply>

%return

Returned: a <WebKitScriptMessageReply>.

the self passed in.

Method: script-message-reply:return-error-message self error-message
Method: return-error-message self error-message

Reply to a script message with an error message.

self

Passed: a <WebKitScriptMessageReply>.

A <WebKitScriptMessageReply>

error-message

Passed: a string.

An error message to return as specified by the user’s script message

Method: script-message-reply:return-value self reply-value
Method: return-value self reply-value

Reply to a script message with a value.

This function can be called twice for passing the reply value in.

self

Passed: a <WebKitScriptMessageReply>.

A <WebKitScriptMessageReply>

reply-value

Passed: a <JSCValue>.

Reply value of the provided script message

Method: script-message-reply:unref self
Method: unref self

Atomically decrements the reference count of self by one.

If the reference count drops to 0, all the memory allocated by the <WebKitScriptMessageReply> is released. This function is MT-safe and may be called from any thread.

self

Passed: a <WebKitScriptMessageReply>.

A <WebKitScriptMessageReply>