Palette.PaletteAsyncListener

public static interface Palette.PaletteAsyncListener

androidx.palette.graphics.Palette.PaletteAsyncListener


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

Summary

Public methods

abstract void onGenerated(Palette palette)

Called when the Palette has been generated.

Public methods

onGenerated

public abstract void onGenerated (Palette palette)

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

Parameters
palette Palette