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

# playerViewControllerShouldAutomaticallyDismissAtPictureInPictureStart(_:)

Asks the delegate whether the player view controller automatically dismisses itself when Picture in Picture starts.

```
optional func playerViewControllerShouldAutomaticallyDismissAtPictureInPictureStart(_ playerViewController: AVPlayerViewController) -> Bool
```

## Parameters

`playerViewController`

The player view controller.

## Return Value

`true` to indicate that the player view controller automatically dismisses itself; otherwise `false`.

## Discussion

Implement this method and return `false` to prevent the player view controller from automatically dismissing when Picture in Picture starts.

---

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)