Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.palette:palette:1.0.0-rc01

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

added in version 1.0.0
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