Skip to main content
Ctrl+K

GNOME Python API

  • GLib
  • Gio
  • GObject
  • Gtk
  • Gdk
  • Adw
    • DBus
    • DBusGLib
    • Flatpak
    • GModule
    • Gcr
    • GdkPixbuf
    • GdkPixdata
    • GdkWayland
    • GdkX11
    • Graphene
    • Gsk
    • Gst
    • GstBase
    • GstCheck
    • GstController
    • GstNet
    • GtkSource
    • HarfBuzz
    • ICal
    • JavaScriptCore
    • Pango
    • PangoCairo
    • PangoFT2
    • PangoFc
    • PangoOT
    • PangoXft
    • Shumate
    • Soup
    • Vte
    • WebKit
    • WebKitWebProcessExtension
    • Xdp
    • XdpGtk4
    • pycairo
  • GLib
  • Gio
  • GObject
  • Gtk
  • Gdk
  • Adw
  • DBus
  • DBusGLib
  • Flatpak
  • GModule
  • Gcr
  • GdkPixbuf
  • GdkPixdata
  • GdkWayland
  • GdkX11
  • Graphene
  • Gsk
  • Gst
  • GstBase
  • GstCheck
  • GstController
  • GstNet
  • GtkSource
  • HarfBuzz
  • ICal
  • JavaScriptCore
  • Pango
  • PangoCairo
  • PangoFT2
  • PangoFc
  • PangoOT
  • PangoXft
  • Shumate
  • Soup
  • Vte
  • WebKit
  • WebKitWebProcessExtension
  • Xdp
  • XdpGtk4
  • pycairo

Section Navigation

API

  • Classes
    • AuthenticationRequest
    • AutomationSession
    • BackForwardList
    • BackForwardListItem
    • ClipboardPermissionRequest
    • ColorChooserRequest
    • ContextMenu
    • ContextMenuItem
    • CookieManager
    • DeviceInfoPermissionRequest
    • Download
    • EditorState
    • FaviconDatabase
    • FileChooserRequest
    • FindController
    • FormSubmissionRequest
    • GeolocationManager
    • GeolocationPermissionRequest
    • HitTestResult
    • InputMethodContext
    • MediaKeySystemPermissionRequest
    • NavigationPolicyDecision
    • NetworkSession
    • Notification
    • NotificationPermissionRequest
    • OptionMenu
    • PointerLockPermissionRequest
    • PolicyDecision
    • PrintOperation
    • ResponsePolicyDecision
    • SecurityManager
    • Settings
    • URIRequest
    • URIResponse
    • URISchemeRequest
    • URISchemeResponse
    • UserContentFilterStore
    • UserContentManager
    • UserMediaPermissionRequest
    • UserMessage
    • WebContext
    • WebInspector
    • WebResource
    • WebView
    • WebViewBase
    • WebsiteDataAccessPermissionRequest
    • WebsiteDataManager
    • WebsitePolicies
    • WindowProperties
  • Interfaces
    • PermissionRequest
  • Structures
    • ApplicationInfo
    • Credential
    • Feature
    • FeatureList
    • GeolocationPosition
    • ITPFirstParty
    • ITPThirdParty
    • InputMethodUnderline
    • MemoryPressureSettings
    • NavigationAction
    • NetworkProxySettings
    • OptionMenuItem
    • PermissionStateQuery
    • ScriptDialog
    • ScriptMessageReply
    • SecurityOrigin
    • UserContentFilter
    • UserScript
    • UserStyleSheet
    • WebExtensionMatchPattern
    • WebViewSessionState
    • WebsiteData
  • Enums
    • AuthenticationScheme
    • AutomationBrowsingContextPresentation
    • AutoplayPolicy
    • CacheModel
    • ContextMenuAction
    • CookieAcceptPolicy
    • CookiePersistentStorage
    • CredentialPersistence
    • DownloadError
    • EditorTypingAttributes
    • FaviconDatabaseError
    • FeatureStatus
    • FindOptions
    • HardwareAccelerationPolicy
    • HitTestResultContext
    • InputHints
    • InputPurpose
    • InsecureContentEvent
    • JavascriptError
    • LoadEvent
    • MediaCaptureState
    • MediaError
    • NavigationType
    • NetworkError
    • NetworkProxyMode
    • PermissionState
    • PolicyDecisionType
    • PolicyError
    • PrintError
    • PrintOperationResponse
    • SaveMode
    • ScriptDialogType
    • SnapshotError
    • SnapshotOptions
    • SnapshotRegion
    • TLSErrorsPolicy
    • UserContentFilterError
    • UserContentInjectedFrames
    • UserMessageError
    • UserScriptInjectionTime
    • UserStyleLevel
    • WebExtensionMatchPatternError
    • WebExtensionMatchPatternOptions
    • WebExtensionMode
    • WebProcessTerminationReason
    • WebsiteDataTypes
  • Functions
  • Constants
  • WebKit
  • Structures
  • NavigationAction

NavigationAction#

class NavigationAction(*args, **kwargs)#

Provides details about interaction resulting in a resource load.

Methods#

class NavigationAction
free() → None#

Free the NavigationAction

Added in version 2.6.

get_frame_name() → str | None#

Gets the navigation target frame name. For example if navigation was triggered by clicking a link with a target attribute equal to “_blank”, this will return the value of that attribute. In all other cases this function will return None.

Added in version 2.40.

get_modifiers() → int#

Return the modifier keys.

Return a bitmask of ModifierType values describing the modifier keys that were in effect when the navigation was requested

Added in version 2.6.

get_mouse_button() → int#

Return the number of the mouse button that triggered the navigation.

Return the number of the mouse button that triggered the navigation, or 0 if the navigation was not started by a mouse event.

Added in version 2.6.

get_navigation_type() → NavigationType#

Return the type of action that triggered the navigation.

Added in version 2.6.

get_request() → URIRequest#

Return the URIRequest associated with the navigation action.

Modifications to the returned object are <emphasis>not</emphasis> taken into account when the request is sent over the network, and is intended only to aid in evaluating whether a navigation action should be taken or not. To modify requests before they are sent over the network the WebKitPage::send-request signal can be used instead.

Added in version 2.6.

is_redirect() → bool#

Returns whether the navigation was redirected.

Added in version 2.20.

is_user_gesture() → bool#

Return whether the navigation was triggered by a user gesture like a mouse click.

Added in version 2.6.

On this page
  • Methods
    • NavigationAction.free()
    • NavigationAction.get_frame_name()
    • NavigationAction.get_modifiers()
    • NavigationAction.get_mouse_button()
    • NavigationAction.get_navigation_type()
    • NavigationAction.get_request()
    • NavigationAction.is_redirect()
    • NavigationAction.is_user_gesture()

This Page

  • Show Source

Created using Sphinx 8.2.3.

General Index

Built with the PyData Sphinx Theme 0.16.1.