Language

TileState Enum

Definition

Specifies whether a Quick Settings tile is unavailable, inactive, or active.

public enum TileState
type TileState = 
Inheritance
TileState

Fields

Name Value Description
Unavailable 0

An unavailable state indicates that for some reason this tile is not currently available to the user, and will have no click action. The tile's icon will be tinted differently to reflect this state.

Android reference for android.service.quicksettings.Tile.STATE_UNAVAILABLE.

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.

Inactive 1

This represents a tile that is currently in a disabled state but is still interactable. A disabled state indicates that the tile is not currently active (e.g. wifi disconnected or bluetooth disabled), but is still interactable by the user to modify this state. Tiles that have boolean states should use this to represent one of their states. The tile's icon will be tinted differently to reflect this state, but still be distinct from unavailable.

Android reference for android.service.quicksettings.Tile.STATE_INACTIVE.

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.

Active 2

This represents a tile that is currently active. (e.g. wifi is connected, bluetooth is on, cast is casting).

Android reference for android.service.quicksettings.Tile.STATE_ACTIVE.

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.

Remarks

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