Package org.gnome.webkit
Class ScriptMessageReply
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.webkit.ScriptMessageReply
- All Implemented Interfaces:
Proxy
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.
-
Constructor Summary
ConstructorDescriptionScriptMessageReply
(MemorySegment address) Create a ScriptMessageReply proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the ScriptMessageReply classref()
Atomically increments the reference count of this ScriptMessageReply by one.void
returnErrorMessage
(String errorMessage) Reply to a script message with an error message.void
returnValue
(Value replyValue) Reply to a script message with a value.void
unref()
Atomically decrements the reference count of this ScriptMessageReply by one.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
ScriptMessageReply
Create a ScriptMessageReply proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
-
Method Details
-
getType
-
ref
Atomically increments the reference count of this ScriptMessageReply by one.- Returns:
- the this ScriptMessageReply passed in.
-
returnErrorMessage
Reply to a script message with an error message.- Parameters:
errorMessage
- An error message to return as specified by the user's script message
-
returnValue
Reply to a script message with a value.This function can be called twice for passing the reply value in.
- Parameters:
replyValue
- Reply value of the provided script message
-
unref
public void unref()Atomically decrements the reference count of this ScriptMessageReply 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.
-