TileService.MetaDataActiveTile Field

Definition

Meta-data for tile definition to set a tile into active mode.

[Android.Runtime.Register("META_DATA_ACTIVE_TILE", ApiSince=24)]
public const string MetaDataActiveTile;
[<Android.Runtime.Register("META_DATA_ACTIVE_TILE", ApiSince=24)>]
val mutable MetaDataActiveTile : string

Field Value

Attributes

Remarks

Meta-data for tile definition to set a tile into active mode.

Active mode is for tiles which already listen and keep track of their state in their own process. These tiles may request to send an update to the System while their process is alive using #requestListeningState. The System will only bind these tiles on its own when a click needs to occur.

To make a TileService an active tile, set this meta-data to true on the TileService's manifest declaration.

{@literal
<meta-data android:name="android.service.quicksettings.ACTIVE_TILE"
                 android:value="true" />
            }

Java documentation for android.service.quicksettings.TileService.META_DATA_ACTIVE_TILE.

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