Google 致力于为黑人社区推动种族平等。查看具体举措

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