Interface for implementing dismissal interaction.
This function is called after the dismissal animation has completed.
This function is called when triggering a dismissal, so at the start of a dismissal gesture. This function is executed while view animation is in progress.