Class NavigationPolicyDecision

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public final class NavigationPolicyDecision extends PolicyDecision

A policy decision for navigation actions.

WebKitNavigationPolicyDecision represents a policy decision for events associated with navigations. If the value of WebKitNavigationPolicyDecision:mouse-button is not 0, then the navigation was triggered by a mouse event.

  • Constructor Details

    • NavigationPolicyDecision

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

      public NavigationPolicyDecision()
      Create a new NavigationPolicyDecision.
  • Method Details

    • getType

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

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

      protected NavigationPolicyDecision asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class PolicyDecision
      Returns:
      the instance as if it were its parent type
    • getNavigationAction

      public NavigationAction getNavigationAction()
      Gets the value of the WebKitNavigationPolicyDecision:navigation-action property.
      Returns:
      The WebKitNavigationAction triggering this policy decision.
      Since:
      2.6
    • builder

      A NavigationPolicyDecision.Builder object constructs a NavigationPolicyDecision with the specified properties. Use the various set...() methods to set properties, and finish construction with NavigationPolicyDecision.Builder.build().
      Returns:
      the builder object