<!--
{
  "availability" : [
    "iOS: 9.0.0 - 27.0.0",
    "iPadOS: 9.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "macOS: 11.0.0 - 27.0.0",
    "tvOS: 10.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "ReplayKit",
  "identifier" : "/documentation/ReplayKit/RPPreviewViewControllerDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "ReplayKit"
    ],
    "preciseIdentifier" : "c:objc(pl)RPPreviewViewControllerDelegate"
  },
  "title" : "RPPreviewViewControllerDelegate"
}
-->

# RPPreviewViewControllerDelegate

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

```
protocol RPPreviewViewControllerDelegate : NSObjectProtocol
```

## Overview

Use this class to respond to changes to a screen-recording user interface, represented by an [`RPBroadcastActivityViewController`](/documentation/ReplayKit/RPBroadcastActivityViewController) object.

## Topics

### Dismissing the View Controller

[`previewControllerDidFinish(_:)`](/documentation/ReplayKit/RPPreviewViewControllerDelegate/previewControllerDidFinish(_:))

Indicates that the preview view controller is ready to be dismissed.

[`previewController(_:didFinishWithActivityTypes:)`](/documentation/ReplayKit/RPPreviewViewControllerDelegate/previewController(_:didFinishWithActivityTypes:))

Indicates that the preview view controller is ready to be dismissed with associated activity types.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)