NavigationPolicyDecision

class NavigationPolicyDecision(pointer: <Error class: unknown class><<Error class: unknown class>>) : 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.

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The #WebKitNavigationAction that triggered this policy decision.

Link copied to clipboard
val webkitNavigationPolicyDecisionPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val webkitPolicyDecisionPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun download()

Spawn a download from this decision.

Link copied to clipboard
open fun ignore()

#WebKitResponsePolicyDecision, this would cancel the request.

Link copied to clipboard
open fun use()

Accept the action which triggered this decision.

Link copied to clipboard
open fun useWithPolicies(policies: WebsitePolicies)

Accept the navigation action and continue with provided @policies.