Package org.webkitgtk
Class ScriptMessageReply
java.lang.Object
org.javagi.base.ProxyInstance
org.webkitgtk.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.
- Since:
- 2.40
-
Constructor Summary
ConstructorsConstructorDescriptionScriptMessageReply(MemorySegment address) Create a ScriptMessageReply proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable TypegetType()Get the GType of the ScriptMessageReply classref()Atomically increments the reference count of this ScriptMessageReply by one.voidreturnErrorMessage(String errorMessage) Reply to a script message with an error message.voidreturnValue(Value replyValue) Reply to a script message with a value.voidunref()Atomically decrements the reference count of this ScriptMessageReply by one.Methods inherited from class org.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
Get the GType of the ScriptMessageReply class- Returns:
- the GType
-
ref
Atomically increments the reference count of this ScriptMessageReply by one.- Returns:
- the this ScriptMessageReply passed in.
- Since:
- 2.40
-
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- Since:
- 2.40
-
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- Since:
- 2.40
-
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
WebKitScriptMessageReplyis released. This function is MT-safe and may be called from any thread.- Since:
- 2.40
-