pictureInPictureControllerShouldProhibitBackgroundAudioPlayback(_:)
Asks the delegate whether to always prohibit background audio playback.
Declaration
optional func pictureInPictureControllerShouldProhibitBackgroundAudioPlayback(_ pictureInPictureController: AVPictureInPictureController) -> BoolParameters
- pictureInPictureController:
The Picture in Picture controller instance.
Return Value
true if the delegate prohibits background audio playback; otherwise, false.
Discussion
If you implement this method, the system calls it once for each invocation of invalidatePlaybackState() to determine whether to prohibit audio playback when the Picture in Picture window is in the background.