Enum Class LoadEvent

java.lang.Object
java.lang.Enum<LoadEvent>
org.webkitgtk.LoadEvent
All Implemented Interfaces:
Serializable, Comparable<LoadEvent>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum LoadEvent extends Enum<LoadEvent> implements Enumeration
Enum values used to denote the different events that happen during a WebKitWebView load operation.
  • Enum Constant Details

    • STARTED

      public static final LoadEvent STARTED
      A new load request has been made. No data has been received yet, empty structures have been allocated to perform the load; the load may still fail due to transport issues such as not being able to resolve a name, or connect to a port.
    • REDIRECTED

      public static final LoadEvent REDIRECTED
      A provisional data source received a server redirect.
    • COMMITTED

      public static final LoadEvent COMMITTED
      The content started arriving for a page load. The necessary transport requirements are established, and the load is being performed.
    • FINISHED

      public static final LoadEvent FINISHED
      Load completed. All resources are done loading or there was an error during the load operation.
  • Method Details

    • values

      public static LoadEvent[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LoadEvent valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static LoadEvent of(int value)
      Create a new LoadEvent for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static LoadEvent of(MemorySegment address)
      Create a new LoadEvent for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address
    • getType

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