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

# download()

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

## Declaration

```swift
func download()
```

## Discussion

Discussion This method converts a location change that may be in progress to a download operation without having to stop and restart the download. You might invoke this method based on the content’s MIME type.

## See Also

### Making Resource-Usage Decisions

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