Contents

playerView(_:restoreUserInterfaceForFullScreenExitWithCompletionHandler:)

Tells the delegate to restore the app’s user interface when exiting full-screen mode.

Declaration

optional func playerView(_ playerView: AVPlayerView, restoreUserInterfaceForFullScreenExitWithCompletionHandler completionHandler: @escaping  @Sendable (Bool) -> Void)
optional func playerViewRestoreUserInterfaceForFullScreenExit(_ playerView: AVPlayerView) async -> Bool

Parameters

  • playerView:

    The player view.

  • completionHandler:

    You must call the completion handler with a value of true to allow the system to finish restoring your app’s user interface.

See Also

Responding to Full Screen Events