Instance Method

dismissContentProposalForAction:animated:completion:

Dismisses the current content proposal.

Declaration

- (void)dismissContentProposalForAction:(AVContentProposalAction)action animated:(BOOL)animated completion:(void (^)(void))block;

Parameters

action

Indicates whether the user has accepted or rejected the content proposal, or has deferred the decision.

animated

YES if the dismissal should be animated, NO if the presentation should be dismissed immediately.

block

An optional block that will be called when the proposal has been hidden.

Discussion

This method should be called when the user is leaving the presentation. For AVContentProposalActionAccept, the proposed content will begin to play; for AVContentProposalActionReject, the player view controller will be dismissed. For action AVContentProposalActionDefer, the video will resume playing, or if it has ended, will replay from the beginning.

See Also

Dismissing the Content View Controller

AVContentProposalAction

Constant values for the content proposal action.