SubContainerAnimationProvider

A provider for both enter and exit animations of sub-containers of a PanelContainer. This provider will be bound to a SubContainerAnimationProviderContext that can be used to store information in a view model that survives configuration changes. For instance, it can store the PanelTransitionSource of the enter animation to later on use it to determine the exit animation.

Functions

Link copied to clipboard
open fun bind(subContainerAnimationProviderContext: SubContainerAnimationProviderContext)

Binds the SubContainerAnimationProviderContext to this. This context can be used to create a view model.

Link copied to clipboard
open fun getEnterAnimation(subContainer: View, subContainerData: SD): Animation?

Gets the enter animation for subContainer that contains or will contain subContainerData.

Link copied to clipboard
open fun getExitAnimation(subContainer: View, subContainerData: SD): Animation?

Gets the exit animation for subContainer that contains or will contain subContainerData.