setTransition

open fun setTransition(@NonNull transitionOptions: TransitionOptions)

Set the transition options for style changes.

If not set, any changes take effect without animation, besides symbols, which will fade in/out with a default duration after symbol collision detection.

To disable symbols fade in/out animation, pass transition options with enablePlacementTransitions equal to false.

Both duration and delay will also change the behavior of the symbols fade in/out animation if the placement transition is enabled.

Parameters

transitionOptions

the transition options