PolicyDecision

open class PolicyDecision(pointer: <Error class: unknown class><<Error class: unknown class>>)

A pending policy decision.

Often WebKit allows the client to decide the policy for certain operations. For instance, a client may want to open a link in a new tab, block a navigation entirely, query the user or trigger a download instead of a navigation. In these cases WebKit will fire the #WebKitWebView::decide-policy signal with a #WebKitPolicyDecision object. If the signal handler does nothing, WebKit will act as if webkit_policy_decision_use() was called as soon as signal handling completes. To make a policy decision asynchronously, simply increment the reference count of the #WebKitPolicyDecision object.

Inheritors

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
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.