Share via


Tile.Icon Property

Definition

Gets the current icon for the tile. -or- Sets the current icon for the tile.

public Android.Graphics.Drawables.Icon? Icon { [Android.Runtime.Register("getIcon", "()Landroid/graphics/drawable/Icon;", "", ApiSince=24)] get; [Android.Runtime.Register("setIcon", "(Landroid/graphics/drawable/Icon;)V", "", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getIcon", "()Landroid/graphics/drawable/Icon;", "", ApiSince=24)>]
[<set: Android.Runtime.Register("setIcon", "(Landroid/graphics/drawable/Icon;)V", "", ApiSince=24)>]
member this.Icon : Android.Graphics.Drawables.Icon with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Gets the current icon for the tile.

Java documentation for android.service.quicksettings.Tile.getIcon().

Property setter documentation:

Sets the current icon for the tile.

This icon is expected to be white on alpha, and may be tinted by the system to match it's theme.

Does not take effect until #updateTile() is called.

Java documentation for android.service.quicksettings.Tile.setIcon(android.graphics.drawable.Icon).

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