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
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 FLAG_LOCK and FLAG_SYSTEM