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, null when not available.

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