Contents

WKNavigationAction

An object that contains information about an action that causes navigation to occur.

Declaration

@MainActor class WKNavigationAction

Overview

Use a WKNavigationAction object to make policy decisions about whether to allow navigation within your app’s web view. You don’t create WKNavigationAction objects directly. Instead, the web view creates them and delivers them to the appropriate delegate objects. Use the methods of your delegate to analyze the action and determine whether to allow the resulting navigation to occur.

Topics

Getting the navigation type

Inspecting navigation information

Inspecting user actions

Instance Properties

See Also

Navigation