rememberLottieIcon
Remembers a ThemeSwitchIcon.LottieFilePainter that loads Lottie animation from a JSON string.
This is a convenience function for rememberLottieIcon when the Lottie source is a JSON string. For other composition sources (files, URLs, etc.), use rememberLottieIcon directly.
Return
A remembered ThemeSwitchIcon.LottieFilePainter that can be used with ThemeSwitchButton.
Parameters
The animation specification controlling the interpolation between progress values during theme transitions.
The Lottie animation progress value (0.0f to 1.0f) to display when in dark theme.
The Lottie animation progress value (0.0f to 1.0f) to display when in light theme.
A suspend function that provides the Lottie animation JSON string. This is called when the icon is first composed and may perform I/O operations to load the animation source.
Remembers a ThemeSwitchIcon.LottieFilePainter that loads Lottie animation from a JSON string.
This is a convenience function for rememberLottieIcon when the Lottie source is a JSON string. For other composition sources (files, URLs, etc.), use rememberLottieIcon directly.
Return
A remembered ThemeSwitchIcon.LottieFilePainter that can be used with ThemeSwitchButton.
Parameters
The animation specification controlling the interpolation between progress values during theme transitions.
The Lottie animation progress value (0.0f to 1.0f) to display when in dark theme.
The Lottie animation progress value (0.0f to 1.0f) to display when in light theme.
The Lottie animation progress value (0.0f to 1.0f) to display when in system theme.
A suspend function that provides the Lottie animation JSON string. This is called when the icon is first composed and may perform I/O operations to load the animation source.