createAnimationFrame

abstract fun createAnimationFrame(text: String, fadeIn: Int, stay: Int, fadeOut: Int): AnimationFrame

Creates an Animation from the input text and timings values.

All timings are measured in ticks.

Return

An instance of AnimationFrame that has the given values assigned.

Since

2.0.0

Parameters

text

The input text to be displayed.

fadeIn

If the frame is being used in a title, this is the time it takes for the title to fade onto the screen. If the frame is not being used in a title, it will be added onto the stay time.

stay

The time it takes for the frame to stay on the screen. (The only exception is for Actionbar messages)

fadeOut

If the frame is being used in a title, this is the time it takes for the title to fade off of the screen. If this frame is not being used in a title, it will be added onto the stay time.

Sources

Link copied to clipboard