Edit

Share via


AVPlayerViewControllerDelegate_Extensions Class

Definition

Extension methods to the IAVPlayerViewControllerDelegate interface to support all the methods from the AVPlayerViewControllerDelegate protocol.

public static class AVPlayerViewControllerDelegate_Extensions
type AVPlayerViewControllerDelegate_Extensions = class
Inheritance
AVPlayerViewControllerDelegate_Extensions

Remarks

The extension methods for IAVPlayerViewControllerDelegate allow developers to treat instances of the interface as having all the optional methods of the original AVPlayerViewControllerDelegate protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.

Methods

DidStartPictureInPicture(IAVPlayerViewControllerDelegate, AVPlayerViewController)

Picture In Picture playback has started.

DidStopPictureInPicture(IAVPlayerViewControllerDelegate, AVPlayerViewController)

Picture In Picture playback has stopped.

FailedToStartPictureInPicture(IAVPlayerViewControllerDelegate, AVPlayerViewController, NSError)

Picture In Picture playback failed to start.

RestoreUserInterfaceForPictureInPicture(IAVPlayerViewControllerDelegate, AVPlayerViewController, Action<Boolean>)

Picture In Picture playback is about to stop. Called to give the app the opportunity to provide a playback user interface by passing true to completionHandler.

ShouldAutomaticallyDismissAtPictureInPictureStart(IAVPlayerViewControllerDelegate, AVPlayerViewController)

App developers should return true to indicate that the player viewer should dismiss when Picture In Picture playback starts, or false to prevent this.

WillStartPictureInPicture(IAVPlayerViewControllerDelegate, AVPlayerViewController)

Picture In Picture playback is about to start.

WillStopPictureInPicture(IAVPlayerViewControllerDelegate, AVPlayerViewController)

Picture In Picture playback is about to stop.

Applies to