buttonNumber
TypeScriptget buttonNumber(): Promise<_UIKit_UIEvent_ButtonMask>Swift declaration@MainActor var buttonNumber: UIEvent.ButtonMask { get }The number of the mouse button that caused the navigation request.
struct · iOS 26.0+ · SDK 27.1
@MainActor struct NavigationActionAn 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`.
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 navigationType(): Promise<WKNavigationType>Swift declaration@MainActor var navigationType: WKNavigationType { get }The type of action that triggered the navigation.
get shouldPerformDownload(): Promise<boolean>Swift declaration@MainActor var shouldPerformDownload: Bool { get }Indicates whether the web content provided an attribute that indicates a download.
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 source(): Promise<WebPage_FrameInfo>Swift declaration@MainActor var source: WebPage.FrameInfo { get }The frame that requested the navigation.
get target(): Promise<(WebPage_FrameInfo) | null>Swift declaration@MainActor var target: WebPage.FrameInfo? { get }The frame in which to display the new content.
get request(): Promise<_Foundation_URLRequest>Swift declaration@MainActor var request: URLRequest { get }The URL request object associated with the navigation action.
No declarations were skipped in this snapshot.