Class ScriptMessageReply

java.lang.Object
org.javagi.base.ProxyInstance
org.webkitgtk.ScriptMessageReply
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class ScriptMessageReply extends ProxyInstance
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 Details

    • ScriptMessageReply

      public ScriptMessageReply(MemorySegment address)
      Create a ScriptMessageReply proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the ScriptMessageReply class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • ref

      public ScriptMessageReply ref()
      Atomically increments the reference count of this ScriptMessageReply by one.
      Returns:
      the this ScriptMessageReply passed in.
      Since:
      2.40
    • returnErrorMessage

      public void returnErrorMessage(String errorMessage)
      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

      public void returnValue(Value replyValue)

      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 WebKitScriptMessageReply is released. This function is MT-safe and may be called from any thread.

      Since:
      2.40