Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in API level 27

WallpaperManager.OnColorsChangedListener

public static interface WallpaperManager.OnColorsChangedListener

android.app.WallpaperManager.OnColorsChangedListener


Interface definition for a callback to be invoked when colors change on a wallpaper.

Summary

Public methods

abstract void onColorsChanged(WallpaperColors colors, int which)

Called when colors change.

Public methods

onColorsChanged

added in API level 27
public abstract void onColorsChanged (WallpaperColors colors, 
                int which)

Called when colors change. A WallpaperColors object containing a simplified color histogram will be given.

Parameters
colors WallpaperColors: Wallpaper color info

which int: A combination of WallpaperManager.FLAG_LOCK and WallpaperManager.FLAG_SYSTEM