toSubtitleAnimation

abstract fun toSubtitleAnimation(animation: Animation, player: Player, withPlaceholders: Boolean): SendableAnimation

Creates a SendableAnimation that sends Subtitles to the player.

If withPlaceholders is true, placeholders will be replaced.

Return

The SendableAnimation instance associated with the animation.

Since

2.0.0

Parameters

animation

The animation to be used.

player

The player the SendableAnimation is associated with.

withPlaceholders

Whether or not placeholders should be replaced.


abstract fun toSubtitleAnimation(parts: List<AnimationPart<*>>, player: Player, withPlaceholders: Boolean): SendableAnimation

Creates a SendableAnimation that sends Subtitles to the player.

If withPlaceholders is true, placeholders will be replaced.

Return

The SendableAnimation instance associated with the animation.

Since

2.0.0

Parameters

parts

The parts of the animation the SendableAnimation will be made off of.

player

The player the SendableAnimation is associated with.

withPlaceholders

Whether or not placeholders should be replaced.