playerViewControllerShouldDismiss(_:)
Asks the delegate object whether the player view controller dismisses itself upon request.
Declaration
optional func playerViewControllerShouldDismiss(_ playerViewController: AVPlayerViewController) -> BoolParameters
- playerViewController:
The player view controller.
Return Value
true if the player view controller should dismiss itself; otherwise false.
Discussion
If allowed, the player view controller dismisses itself with animation. If you’ve embedded the player view controller in another view, the delegate may need to manually dismiss the view controller.