connectDecidePolicy

fun connectDecidePolicy(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (decision: PolicyDecision, decisionType: PolicyDecisionType) -> Boolean): <Error class: unknown class>

This signal is emitted when WebKit is requesting the client to decide a policy decision, such as whether to navigate to a page, open a new window or whether or not to download a resource. The #WebKitNavigationPolicyDecision passed in the

Parameters

connectFlags

A combination of ConnectFlags

handler

the Callback to connect. Params: decision the #WebKitPolicyDecision; decisionType a #WebKitPolicyDecisionType denoting the type of @decision. Returns true to stop other handlers from being invoked for the event. false to propagate the event further.