Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

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.