OnColorsChangedListener

interface OnColorsChangedListener
android.app.WallpaperManager.OnColorsChangedListener

Interface definition for a callback to be invoked when colors change on a wallpaper.
Requires API level 27 (Android 8.1, Oreo)

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.
Requires API level 27 (Android 8.1, Oreo)

Parameters
colors WallpaperColors!: Wallpaper color info
which WallpaperColors!: A combination of #FLAG_LOCK and #FLAG_SYSTEM