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

# playerView(_:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:)

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

```
optional func playerView(_ playerView: AVPlayerView, restoreUserInterfaceForPictureInPictureStopWithCompletionHandler completionHandler: @escaping @Sendable (Bool) -> Void)
```

```
optional func playerViewRestoreUserInterfaceForPictureInPictureStop(_ playerView: AVPlayerView) async -> Bool
```

## Parameters

`playerView`

The player view.

`completionHandler`

The completion handler to call after you’ve restored the user interface.

---

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)