---
title: WebPolicyDecisionListener
framework: webkit
role: symbol
role_heading: Protocol
path: webkit/webpolicydecisionlistener
---

# WebPolicyDecisionListener

This protocol enables WebView 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.

## Declaration

```swift
protocol WebPolicyDecisionListener : NSObjectProtocol
```

## Overview

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()](webkit/webpolicydecisionlistener/download().md)
- [ignore()](webkit/webpolicydecisionlistener/ignore().md)
- [use()](webkit/webpolicydecisionlistener/use().md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Related Documentation

- [WebKit Objective-C Programming Guide](apple-archive/documentation/Cocoa/Conceptual/DisplayWebContent.md)

### Setting Policies (Legacy)

- [WebPolicyDelegate](webkit/webpolicydelegate.md)
