---
title: WebOpenPanelResultListener
framework: webkit
role: symbol
role_heading: Protocol
path: webkit/webopenpanelresultlistener
---

# WebOpenPanelResultListener

WebView user interface delegates that implement the webView:runOpenPanelForFileButtonWithResultListener: method use the methods defined in this protocol to communicate with the listener object. The methods allow the delegate to send a cancel message, or set the selected file name.

## Declaration

```swift
protocol WebOpenPanelResultListener : NSObjectProtocol
```

## Topics

### Setting a File Name

- [chooseFilename(_:)](webkit/webopenpanelresultlistener/choosefilename(_:).md)
- [chooseFilenames(_:)](webkit/webopenpanelresultlistener/choosefilenames(_:).md)

### Cancelling a File Open Operation

- [cancel()](webkit/webopenpanelresultlistener/cancel().md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
