<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebPage/NavigationDeciding/decidePolicy(for:preferences:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "s:6WebKit0A4PageC18NavigationDecidingP12decidePolicy3for11preferencesSo018WKNavigationActionG0VAC0dK0V_AC0D11PreferencesVztYaF"
  },
  "title" : "decidePolicy(for:preferences:)"
}
-->

# decidePolicy(for:preferences:)

Determines permission to navigate to new content based on the specified preferences and action information.

```
@MainActor mutating func decidePolicy(for action: WebPage.NavigationAction, preferences: inout WebPage.NavigationPreferences) async -> WKNavigationActionPolicy
```

## Parameters

`action`

Details about the action that triggered the navigation request.

`preferences`

The preferences to use when displaying the new webpage.

## Return Value

The navigation policy for the action.

## Discussion

The web page calls this method after the interaction occurs but before it attempts to load any content.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)