One Logo Pool Ball
WebKit · IOS API REFERENCE

WebPage.NavigationAction

struct · iOS 26.0+ · SDK 27.1

@MainActor struct NavigationAction

An object that contains information about an action that causes navigation to occur. A `NavigationAction` value is intended to be used to make policy decisions about whether to allow navigation within a web page via a `NavigationDeciding`.

Members (7)

get · iOS 26.0+

buttonNumber

TypeScript
get buttonNumber(): Promise<_UIKit_UIEvent_ButtonMask>
Swift declaration
@MainActor var buttonNumber: UIEvent.ButtonMask { get }

The number of the mouse button that caused the navigation request.

get · iOS 26.0+

navigationType

TypeScript
get navigationType(): Promise<WKNavigationType>
Swift declaration
@MainActor var navigationType: WKNavigationType { get }

The type of action that triggered the navigation.

get · iOS 26.0+

shouldPerformDownload

TypeScript
get shouldPerformDownload(): Promise<boolean>
Swift declaration
@MainActor var shouldPerformDownload: Bool { get }

Indicates whether the web content provided an attribute that indicates a download.

get · iOS 26.0+

isContentRuleListRedirect

TypeScript
get isContentRuleListRedirect(): Promise<boolean>
Swift declaration
@MainActor var isContentRuleListRedirect: Bool { get }

Whether or not the navigation is a redirect from a content rule list.

get · iOS 26.0+

source

TypeScript
get source(): Promise<WebPage_FrameInfo>
Swift declaration
@MainActor var source: WebPage.FrameInfo { get }

The frame that requested the navigation.

get · iOS 26.0+

target

TypeScript
get target(): Promise<(WebPage_FrameInfo) | null>
Swift declaration
@MainActor var target: WebPage.FrameInfo? { get }

The frame in which to display the new content.

get · iOS 26.0+

request

TypeScript
get request(): Promise<_Foundation_URLRequest>
Swift declaration
@MainActor var request: URLRequest { get }

The URL request object associated with the navigation action.

Skipped declarations

No declarations were skipped in this snapshot.

All WebKit types →