playAnimation

abstract fun playAnimation(animationResource: AnimationResource, config: AnimationPlayConfig = AnimationPlayConfig()): AnimationPlaybackController

Plays the specific animation.

Return

The playback controller for the animation.

Parameters

animationResource

The animation resource to play. You can get it from getAnimationResources.

config

The animation play configuration for playing animation.