Class WebViewSessionState

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

@Generated("org.javagi.JavaGI") public class WebViewSessionState extends ProxyInstance
Handles serialization of a web view's browsing state.
Since:
2.12
  • Constructor Details

    • WebViewSessionState

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

      public WebViewSessionState(byte[] data)
      Creates a new WebKitWebViewSessionState from serialized data.
      Parameters:
      data - a GBytes
      Since:
      2.12
  • Method Details

    • getType

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

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

      public WebViewSessionState ref()

      Atomically increments the reference count of this WebViewSessionState by one.

      This function is MT-safe and may be called from any thread.

      Returns:
      The passed in WebKitWebViewSessionState
      Since:
      2.12
    • serialize

      public byte[] serialize()
      Serializes a WebKitWebViewSessionState.
      Returns:
      a GBytes containing the this WebViewSessionState serialized.
      Since:
      2.12
    • unref

      public void unref()

      Atomically decrements the reference count of this WebViewSessionState by one.

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

      Since:
      2.12