Created
March 28, 2026 01:14
-
-
Save skydoves/df2655a7f1b83dede8c795d2df77da93 to your computer and use it in GitHub Desktop.
PalettePlugin implementation - class definition
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 data class PalettePlugin( | |
| private val imageModel: Any? = null, | |
| private val useCache: Boolean = true, | |
| private val interceptor: PaletteBuilderInterceptor? = null, | |
| private val paletteLoadedListener: PaletteLoadedListener? = null, | |
| ) : ImagePlugin.SuccessStatePlugin { | |
| private val bitmapPalette = BitmapPalette( | |
| imageModel = imageModel, | |
| useCache = useCache, | |
| interceptor = interceptor, | |
| paletteLoadedListener = paletteLoadedListener, | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment