playerViewController(_:willBeginFullScreenPresentationWithAnimationCoordinator:)
Tells the delegate when the player view controller is about to start full-screen display.
Declaration
optional func playerViewController(_ playerViewController: AVPlayerViewController, willBeginFullScreenPresentationWithAnimationCoordinator coordinator: any UIViewControllerTransitionCoordinator)Parameters
- playerViewController:
The player view controller.
- coordinator:
The transition coordinator to use when coordinating animations.
Discussion
This method isn’t called if you embed the player view controller as a child of the presented view controller.