Class WebViewSessionState
java.lang.Object
org.javagi.base.ProxyInstance
org.webkitgtk.WebViewSessionState
- All Implemented Interfaces:
Proxy
Handles serialization of a web view's browsing state.
- Since:
- 2.12
-
Constructor Summary
ConstructorsConstructorDescriptionWebViewSessionState(byte[] data) Creates a newWebKitWebViewSessionStatefrom serialized data.WebViewSessionState(MemorySegment address) Create a WebViewSessionState proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the WebViewSessionState class.ref()Atomically increments the reference count of this WebViewSessionState by one.byte[]Serializes aWebKitWebViewSessionState.voidunref()Atomically decrements the reference count of this WebViewSessionState by one.Methods inherited from class ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
WebViewSessionState
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 newWebKitWebViewSessionStatefrom serialized data.- Parameters:
data- aGBytes- Since:
- 2.12
-
-
Method Details
-
getType
Get the GType of the WebViewSessionState class.- Returns:
- the GType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
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 aWebKitWebViewSessionState.- Returns:
- a
GBytescontaining 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
WebKitWebViewSessionStateis released. This function is MT-safe and may be called from any thread.- Since:
- 2.12
-