Contents

playerView(_:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:)

Tells the delegate to restore the user interface before Picture in Picture playback stops.

Declaration

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

Parameters

  • playerView:

    The player view.

  • completionHandler:

    The completion handler to call after you’ve restored the user interface.

See Also

Responding to Picture in Picture Playback Events