PaletteAsyncListener

interface PaletteAsyncListener
androidx.palette.graphics.Palette.PaletteAsyncListener

Listener to be used with generateAsync(Bitmap, PaletteAsyncListener) or generateAsync(Bitmap, int, PaletteAsyncListener)

Summary

Public methods

abstract Unit
onGenerated(@Nullable palette: Palette?)

Called when the Palette has been generated.

Public methods

onGenerated

abstract fun onGenerated(@Nullable palette: Palette?): Unit

Called when the Palette has been generated. null will be passed when an error occurred during generation.