Lottie
data class Lottie(@RawRes val resId: Int, val atEnd: Boolean = false, val replayMode: ToolkitIconReplayMode = ToolkitIconReplayMode.Restart, val tintable: Boolean = false, val loop: Boolean = false, val loopTrigger: ToolkitIconLoopTrigger = ToolkitIconLoopTrigger.Immediately) : ToolkitIcon.Animated(source)
Bundled Lottie JSON in res/raw. Plays once per interaction unless loop is set, in which case loopTrigger decides whether the loop starts on its own or on the first interaction. Artwork retains its authored colors; the renderer's tint applies only when tintable is true. Prefer small vector-only compositions for navigation and button icons.
Constructors
Link copied to clipboard
constructor(@RawRes resId: Int, atEnd: Boolean = false, replayMode: ToolkitIconReplayMode = ToolkitIconReplayMode.Restart, tintable: Boolean = false, loop: Boolean = false, loopTrigger: ToolkitIconLoopTrigger = ToolkitIconLoopTrigger.Immediately)
Properties
Link copied to clipboard
When a declared loop starts: right away, or on the first click or selection. Ignored while loop is false. See ToolkitIconLoopTrigger.
Link copied to clipboard