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

# playerViewController(_:restoreUserInterfaceForFullScreenExitWithCompletionHandler:)

Tells the delegate to restore the app’s user interface after returning from a full-screen presentation.

## Declaration

```swift
optional func playerViewController(_ playerViewController: AVPlayerViewController, restoreUserInterfaceForFullScreenExitWithCompletionHandler completionHandler: @escaping @Sendable (Bool) -> Void)
```

```swift
optional func playerViewControllerRestoreUserInterfaceForFullScreenExit(_ playerViewController: AVPlayerViewController) async -> Bool
```

## Parameters

- `playerViewController`: The player view controller.
- `completionHandler`: The completion handler to call for the system to finish restoring your user interface. You must invoke this callback with a value of true.

## See Also

### Responding to Full-Screen Presentations

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