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

# AVPictureInPictureControllerDelegate

A protocol to adopt to respond to Picture in Picture events.

```
protocol AVPictureInPictureControllerDelegate : NSObjectProtocol
```

## Overview

Adopt this protocol in a custom object, and assign the object as the [`delegate`](/documentation/AVKit/AVPictureInPictureController/delegate) of your [`AVPictureInPictureController`](/documentation/AVKit/AVPictureInPictureController) instance.

## Topics

### Restoring the User Interface

[`-  pictureInPictureController:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:`](/documentation/AVKit/AVPictureInPictureControllerDelegate/pictureInPictureController(_:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:))

Tells the delegate to restore the user interface before Picture in Picture stops.

### Responding to Picture in Picture Lifecycle Events

[`-  pictureInPictureControllerWillStartPictureInPicture:`](/documentation/AVKit/AVPictureInPictureControllerDelegate/pictureInPictureControllerWillStartPictureInPicture(_:))

Tells the delegate that Picture in Picture is about to start.

[`-  pictureInPictureControllerDidStartPictureInPicture:`](/documentation/AVKit/AVPictureInPictureControllerDelegate/pictureInPictureControllerDidStartPictureInPicture(_:))

Tells the delegate that Picture in Picture started.

[`-  pictureInPictureController:failedToStartPictureInPictureWithError:`](/documentation/AVKit/AVPictureInPictureControllerDelegate/pictureInPictureController(_:failedToStartPictureInPictureWithError:))

Tells the delegate that Picture in Picture failed to start.

[`-  pictureInPictureControllerWillStopPictureInPicture:`](/documentation/AVKit/AVPictureInPictureControllerDelegate/pictureInPictureControllerWillStopPictureInPicture(_:))

Tells the delegate that Picture in Picture is about to stop.

[`-  pictureInPictureControllerDidStopPictureInPicture:`](/documentation/AVKit/AVPictureInPictureControllerDelegate/pictureInPictureControllerDidStopPictureInPicture(_:))

Tells the delegate that Picture in Picture stopped.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

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)