Created
March 28, 2026 01:14
-
-
Save skydoves/57870b924ff8ab01df204cc0aa37a230 to your computer and use it in GitHub Desktop.
ImagePlugin sealed interface - PainterPlugin and LoadingStatePlugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Immutable | |
| public sealed interface ImagePlugin { | |
| public interface PainterPlugin : ImagePlugin { | |
| @Composable | |
| public fun compose(imageBitmap: ImageBitmap, painter: Painter): Painter | |
| } | |
| public interface LoadingStatePlugin : ImagePlugin { | |
| @Composable | |
| public fun compose( | |
| modifier: Modifier, | |
| imageOptions: ImageOptions, | |
| executor: @Composable (IntSize) -> Unit, | |
| ): ImagePlugin | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment