Added in API level 27

OnColorsChangedListener

interface OnColorsChangedListener
android.app.WallpaperManager.OnColorsChangedListener

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

Summary

Public methods
abstract Unit
onColorsChanged(colors: WallpaperColors?, which: Int)

Called when colors change.

Public methods

onColorsChanged

Added in API level 27
abstract fun onColorsChanged(
    colors: WallpaperColors?,
    which: Int
): Unit

Called when colors change. A android.app.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 FLAG_LOCK and FLAG_SYSTEM