Contents

playerViewController(_:didAccept:)

Tells the delegate when the user accepts the proposed content.

Declaration

optional func playerViewController(_ playerViewController: AVPlayerViewController, didAccept proposal: AVContentProposal)

Parameters

  • playerViewController:

    The player view controller.

  • proposal:

    The content proposal.

Mentioned in

Discussion

Implement this method to replace the player’s current player item with a player item for the proposed content.

See Also

Responding to Content Proposals