playerViewControllerDidStopPictureInPicture(_:)
Tells the delegate when Picture in Picture stops.
Declaration
optional func playerViewControllerDidStopPictureInPicture(_ playerViewController: AVPlayerViewController)Parameters
- playerViewController:
The player view controller.
Mentioned in
Discussion
Don’t restore your app’s user interface in your implementation of this method. Instead, do it in the playerViewController(_:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:) method.
See Also
Responding to Picture in Picture Life Cycle Events
playerViewControllerShouldAutomaticallyDismissAtPictureInPictureStart(_:)playerViewControllerWillStartPictureInPicture(_:)playerViewControllerDidStartPictureInPicture(_:)playerViewController(_:failedToStartPictureInPictureWithError:)playerViewControllerWillStopPictureInPicture(_:)playerViewController(_:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:)