public interface IWallpaperColorsChangedListener
When wallpaper color changes,
onWallpaperColorsChanged(ohos.miscservices.wallpaper.WallpaperColorsCollection, int) will be called to notify your application of the changes.
SystemCapability.Miscservices#WALLPAPER| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onWallpaperColorsChanged(WallpaperColorsCollection colors,
int wallpaperType) |
Called when wallpaper color changes.
|
void onWallpaperColorsChanged(WallpaperColorsCollection colors, int wallpaperType)
colors - Indicates new color information.wallpaperType - Indicates the wallpaper type.
The value can be WallpaperController#WALLPAPER_SYSTEM,
WallpaperController#WALLPAPER_LOCK, or the bitwise OR result of them.