WallpaperColors Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| WallpaperColors(Parcel) |
Initializes a WallpaperColors instance from serialized Parcel data. |
| WallpaperColors(ColorObject, ColorObject, ColorObject) |
Constructs a new object from three colors. |
| WallpaperColors(ColorObject, ColorObject, ColorObject, Int32) |
Constructs a new object from three colors, where hints can be specified. |
WallpaperColors(Parcel)
Initializes a WallpaperColors instance from serialized Parcel data.
[Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "", ApiSince=27)]
public WallpaperColors(Android.OS.Parcel? parcel);
[<Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "", ApiSince=27)>]
new Android.App.WallpaperColors : Android.OS.Parcel -> Android.App.WallpaperColors
Parameters
- parcel
- Parcel
The Parcel containing serialized WallpaperColors data.
- Attributes
Remarks
Reads the serialized wallpaper color state from the supplied Parcel.
Android reference for android.app.WallpaperColors.WallpaperColors(Parcel).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
WallpaperColors(ColorObject, ColorObject, ColorObject)
Constructs a new object from three colors.
[Android.Runtime.Register(".ctor", "(Landroid/graphics/Color;Landroid/graphics/Color;Landroid/graphics/Color;)V", "", ApiSince=27)]
public WallpaperColors(Android.Graphics.ColorObject primaryColor, Android.Graphics.ColorObject? secondaryColor, Android.Graphics.ColorObject? tertiaryColor);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Color;Landroid/graphics/Color;Landroid/graphics/Color;)V", "", ApiSince=27)>]
new Android.App.WallpaperColors : Android.Graphics.ColorObject * Android.Graphics.ColorObject * Android.Graphics.ColorObject -> Android.App.WallpaperColors
Parameters
- primaryColor
- ColorObject
Color: Primary color. This value cannot be null.
- secondaryColor
- ColorObject
Color: Secondary color. This value may be null.
- tertiaryColor
- ColorObject
Color: Tertiary color. This value may be null.
- Attributes
Remarks
Constructs a new object from three colors.
See also:
Android reference for android.app.WallpaperColors.WallpaperColors.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
WallpaperColors(ColorObject, ColorObject, ColorObject, Int32)
Constructs a new object from three colors, where hints can be specified.
[Android.Runtime.Register(".ctor", "(Landroid/graphics/Color;Landroid/graphics/Color;Landroid/graphics/Color;I)V", "", ApiSince=31)]
public WallpaperColors(Android.Graphics.ColorObject primaryColor, Android.Graphics.ColorObject? secondaryColor, Android.Graphics.ColorObject? tertiaryColor, int colorHints);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Color;Landroid/graphics/Color;Landroid/graphics/Color;I)V", "", ApiSince=31)>]
new Android.App.WallpaperColors : Android.Graphics.ColorObject * Android.Graphics.ColorObject * Android.Graphics.ColorObject * int -> Android.App.WallpaperColors
Parameters
- primaryColor
- ColorObject
Color: Primary color. This value cannot be null.
- secondaryColor
- ColorObject
Color: Secondary color. This value may be null.
- tertiaryColor
- ColorObject
Color: Tertiary color. This value may be null.
- colorHints
- Int32
int: A combination of color hints. Value is either 0 or a combination of the following: HINT_SUPPORTS_DARK_TEXT HINT_SUPPORTS_DARK_THEME
- Attributes
Remarks
Constructs a new object from three colors, where hints can be specified.
See also:
Android reference for android.app.WallpaperColors.WallpaperColors.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.