dismissContentProposal(for:animated:completion:)
Dismisses the current content proposal.
Declaration
func dismissContentProposal(for action: AVContentProposalAction, animated: Bool, completion block: (() -> Void)? = nil)func dismissContentProposal(for action: AVContentProposalAction, animated: Bool) asyncParameters
- action:
A content proposal action that indicates whether the user accepted, rejected, or deferred the content proposal.
- animated:
A Boolean value that indicates whether the content proposal dismisses in an animated manner.
- block:
An optional callback that the system calls when its hidden the conten proposal.
Mentioned in
Discussion
Call this method to indicate the user action when leaving this proposal.