---
title: RPPreviewViewControllerDelegate
framework: replaykit
role: symbol
role_heading: Protocol
path: replaykit/rppreviewviewcontrollerdelegate
---

# RPPreviewViewControllerDelegate

The protocol you implement to respond to changes to a screen-recording user interface.

## Declaration

```swift
protocol RPPreviewViewControllerDelegate : NSObjectProtocol
```

## Overview

Overview Use this class to respond to changes to a screen-recording user interface, represented by an RPBroadcastActivityViewController object.

## Topics

### Dismissing the View Controller

- [previewControllerDidFinish(_:)](replaykit/rppreviewviewcontrollerdelegate/previewcontrollerdidfinish(_:).md)
- [previewController(_:didFinishWithActivityTypes:)](replaykit/rppreviewviewcontrollerdelegate/previewcontroller(_:didfinishwithactivitytypes:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Displaying the Preview UI

- [mode](replaykit/rppreviewviewcontroller/mode.md)
- [RPPreviewViewControllerMode](replaykit/rppreviewviewcontrollermode.md)
- [previewControllerDelegate](replaykit/rppreviewviewcontroller/previewcontrollerdelegate.md)
