<!--
{
  "availability" : [
    "macOS: 10.3.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebPolicyDecisionListener",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(pl)WebPolicyDecisionListener"
  },
  "title" : "WebPolicyDecisionListener"
}
-->

# WebPolicyDecisionListener

This protocol enables [`WebView`](/documentation/WebKit/WebView-swift.class) policy delegates to communicate with listener objects. A listener object conforming to this protocol is passed as one of the arguments to web view policy delegate methods.

```
protocol WebPolicyDecisionListener : NSObjectProtocol
```

## Overview

This protocol allows delegates to handle download decisions asynchronously. For example, the policy delegate may display a sheet, and the listener object gets notified only after the user clicks an OK or Cancel button. You do not directly create objects that conform to this protocol.

## Topics

### Making Resource-Usage Decisions

[`download()`](/documentation/WebKit/WebPolicyDecisionListener/download())

Tells the listener to download the resource instead of displaying it.

[`ignore()`](/documentation/WebKit/WebPolicyDecisionListener/ignore())

Tells the listener to ignore the resource.

[`use()`](/documentation/WebKit/WebPolicyDecisionListener/use())

Tells the listener to use the resource.

## See Also

  [WebKit Objective-C Programming Guide](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/DisplayWebContent/DisplayWebContent.html#//apple_ref/doc/uid/10000164i)



---

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)