Language

TileService.MetaDataTileCategory Field

Definition

Meta-data to set a category for a tile.

[Android.Runtime.Register("META_DATA_TILE_CATEGORY", ApiSince=36)]
public const string MetaDataTileCategory;
[<Android.Runtime.Register("META_DATA_TILE_CATEGORY", ApiSince=36)>]
val mutable MetaDataTileCategory : string

Field Value

Attributes

Remarks

Meta-data to set a category for a tile. Optional but recommended for apps that implement a TileService.

This category could be used to classify the provided tile, such as in the edit page for Quick Settings.

To set the category of a TileService, set this meta-data to the appropriate string on the TileService's manifest declaration. For example:

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

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

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