---
title: "playerViewController(_:willBeginFullScreenPresentationWithAnimationCoordinator:)"
framework: avkit
role: symbol
role_heading: Instance Method
path: "avkit/avplayerviewcontrollerdelegate/playerviewcontroller(_:willbeginfullscreenpresentationwithanimationcoordinator:)"
---

# playerViewController(_:willBeginFullScreenPresentationWithAnimationCoordinator:)

Tells the delegate when the player view controller is about to start full-screen display.

## Declaration

```swift
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

Discussion This method isn’t called if you embed the player view controller as a child of the presented view controller.

## See Also

### Responding to Full-Screen Presentations

- [playerViewController(_:willEndFullScreenPresentationWithAnimationCoordinator:)](avkit/avplayerviewcontrollerdelegate/playerviewcontroller(_:willendfullscreenpresentationwithanimationcoordinator:).md)
- [playerViewController(_:restoreUserInterfaceForFullScreenExitWithCompletionHandler:)](avkit/avplayerviewcontrollerdelegate/playerviewcontroller(_:restoreuserinterfaceforfullscreenexitwithcompletionhandler:).md)
