<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVKit",
  "identifier" : "/documentation/AVKit/AVPlayerViewPictureInPictureDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "AVKit"
    ],
    "preciseIdentifier" : "c:objc(pl)AVPlayerViewPictureInPictureDelegate"
  },
  "title" : "AVPlayerViewPictureInPictureDelegate"
}
-->

# AVPlayerViewPictureInPictureDelegate

A protocol that defines the methods to implement to respond to Picture in Picture playback events.

```
protocol AVPlayerViewPictureInPictureDelegate : NSObjectProtocol
```

## Topics

### Responding to Picture in Picture playback events

[`func playerViewWillStartPicture(inPicture: AVPlayerView)`](/documentation/AVKit/AVPlayerViewPictureInPictureDelegate/playerViewWillStartPicture(inPicture:))

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

[`func playerViewDidStartPicture(inPicture: AVPlayerView)`](/documentation/AVKit/AVPlayerViewPictureInPictureDelegate/playerViewDidStartPicture(inPicture:))

Tells the delegate that Picture in Picture playback started.

[`func playerViewWillStopPicture(inPicture: AVPlayerView)`](/documentation/AVKit/AVPlayerViewPictureInPictureDelegate/playerViewWillStopPicture(inPicture:))

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

[`func playerViewDidStopPicture(inPicture: AVPlayerView)`](/documentation/AVKit/AVPlayerViewPictureInPictureDelegate/playerViewDidStopPicture(inPicture:))

Tells the delegate that Picture in Picture playback stopped.

[`func playerView(AVPlayerView, failedToStartPictureInPictureWithError: any Error)`](/documentation/AVKit/AVPlayerViewPictureInPictureDelegate/playerView(_:failedToStartPictureInPictureWithError:))

Tells the delegate that Picture in Picture playback failed to start.

[`func playerView(AVPlayerView, restoreUserInterfaceForPictureInPictureStopWithCompletionHandler: (Bool) -> Void)`](/documentation/AVKit/AVPlayerViewPictureInPictureDelegate/playerView(_:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:))

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

[`func playerViewShouldAutomaticallyDismissAtPicture(inPictureStart: AVPlayerView) -> Bool`](/documentation/AVKit/AVPlayerViewPictureInPictureDelegate/playerViewShouldAutomaticallyDismissAtPicture(inPictureStart:))

Asks the delegate if the player view should miniaturize when Picture in Picture starts.

## 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)