AsyncImagePainterState

interface AsyncImagePainterState : ComposableProperties<ERROR CLASS: Symbol not found for AsyncImagePainter.State>

定义了 AsyncImagePainter 的当前状态。

这是一个密封接口,代表了图像加载过程中的不同阶段:空闲、加载中、成功或失败。

此接口是对 Coil coil3.compose.AsyncImagePainter.State 的抽象封装。

Author

M8Test, [email protected], https://m8test.com

Functions

Link copied to clipboard
abstract fun getPainter(): Painter?

获取当前状态下正在绘制的 Painter。 可能为 null(例如在 Empty 状态下)。