---
title: WKNavigationAction
framework: webkit
role: symbol
role_heading: Class
path: webkit/wknavigationaction
---

# WKNavigationAction

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

## Declaration

```swift
@MainActor class WKNavigationAction
```

## Overview

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

- [navigationType](webkit/wknavigationaction/navigationtype.md)
- [WKNavigationType](webkit/wknavigationtype.md)

### Inspecting navigation information

- [request](webkit/wknavigationaction/request.md)
- [sourceFrame](webkit/wknavigationaction/sourceframe.md)
- [targetFrame](webkit/wknavigationaction/targetframe.md)
- [shouldPerformDownload](webkit/wknavigationaction/shouldperformdownload.md)

### Inspecting user actions

- [buttonNumber](webkit/wknavigationaction/buttonnumber.md)
- [modifierFlags](webkit/wknavigationaction/modifierflags.md)

### Instance Properties

- [isContentRuleListRedirect](webkit/wknavigationaction/iscontentrulelistredirect.md)
- [mainFrameNavigation](webkit/wknavigationaction/mainframenavigation.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)

## See Also

### Navigation

- [WKNavigationDelegate](webkit/wknavigationdelegate.md)
- [WKBackForwardList](webkit/wkbackforwardlist.md)
- [WKBackForwardListItem](webkit/wkbackforwardlistitem.md)
- [WKNavigation](webkit/wknavigation.md)
- [WKNavigationResponse](webkit/wknavigationresponse.md)
