---
title: use()
framework: webkit
role: symbol
role_heading: Instance Method
path: webkit/webpolicydecisionlistener/use()
---

# use()

Tells the listener to use the resource.

## Declaration

```swift
func use()
```

## Discussion

Discussion If there are pending policy decisions, the next policy delegate method has the opportunity to decide what to do with the resource. This will be either the next navigation policy delegate (if there is a redirect), or the content policy delegate. If there are no pending policy decisions, the resource will be displayed if possible. If there is no document view available to display the resource, then the webView:unableToImplementPolicyWithError:frame: message will be sent to the web view policy delegate with an appropriate error. Invoking this method creates any new windows needed to handle the resource.

## See Also

### Related Documentation

- [registerClass(_:representationClass:forMIMEType:)](webkit/webview-swift.class/registerclass(_:representationclass:formimetype:).md)

### Making Resource-Usage Decisions

- [download()](webkit/webpolicydecisionlistener/download().md)
- [ignore()](webkit/webpolicydecisionlistener/ignore().md)
