Instance Method

playerViewController:shouldPresentContentProposal:

Tells the delegate whether the content proposal should be presented.

Declaration

- (BOOL)playerViewController:(AVPlayerViewController *)playerViewController shouldPresentContentProposal:(AVContentProposal *)proposal;

Parameters

playerViewController

The player view controller to which this delegate is assigned.

proposal

The content proposal to be presented.

Return Value

Return YES to allow the presentation of the content proposal.

Discussion

If you implement this method, you should return YES to allow presentation of the content proposal. The delegate may wish to create a custom view controller when this is called and assign it as the contentProposalViewController property of AVPlayerViewController.

See Also

Responding to Content Proposals

- playerViewController:didAcceptContentProposal:

Tells the delegate the user accepts the presented content proposal.

- playerViewController:didRejectContentProposal:

Tells the delegate the user rejects the presented content proposal.