Partager via


WallpaperManager.IOnColorsChangedListener.OnColorsChanged Méthode

Définition

Appelé lorsque les couleurs changent.

[Android.Runtime.Register("onColorsChanged", "(Landroid/app/WallpaperColors;I)V", "GetOnColorsChanged_Landroid_app_WallpaperColors_IHandler:Android.App.WallpaperManager/IOnColorsChangedListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=27)]
public void OnColorsChanged (Android.App.WallpaperColors? colors, int which);
[<Android.Runtime.Register("onColorsChanged", "(Landroid/app/WallpaperColors;I)V", "GetOnColorsChanged_Landroid_app_WallpaperColors_IHandler:Android.App.WallpaperManager/IOnColorsChangedListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=27)>]
abstract member OnColorsChanged : Android.App.WallpaperColors * int -> unit

Paramètres

colors
WallpaperColors

Informations sur la couleur du papier peint, null lorsqu’elles ne sont pas disponibles.

which
Int32

Combinaison de #FLAG_LOCK et #FLAG_SYSTEM

Attributs

Remarques

Appelé lorsque les couleurs changent. Un android.app.WallpaperColors objet contenant un histogramme de couleur simplifié sera donné.

Documentation Java pour android.app.WallpaperManager.OnColorsChangedListener.onColorsChanged(android.app.WallpaperColors, int).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par le projet Android Open Source et utilisés en fonction des termes décrits dans la licence d’attribution Creative Commons 2.5.

S’applique à