androidx.glance.wear.tiles
Interfaces
TimelineMode |
This interface is deprecated. glance-wear-tiles is deprecated and will be removed |
Classes
GlanceTileService |
This class is deprecated. glance-wear-tiles is deprecated and will be removed |
TimeInterval |
This class is deprecated. glance-wear-tiles is deprecated and will be removed |
TimelineMode.TimeBoundEntries |
This class is deprecated. glance-wear-tiles is deprecated and will be removed |
WearTilesCompositionResult |
This class is deprecated. glance-wear-tiles is deprecated and will be removed |
Objects
TimelineMode.SingleEntry |
This object is deprecated. glance-wear-tiles is deprecated and will be removed |
Annotations
ExperimentalGlanceWearTilesApi |
This annotation is deprecated. glance-wear-tiles is deprecated and will be removed |
Top-level functions summary
Unit |
@ComposableThis function is deprecated. glance-wear-tiles is deprecated and will be removed |
suspend WearTilesCompositionResult |
@ExperimentalGlanceWearTilesApiThis function is deprecated. glance-wear-tiles is deprecated and will be removed |
Extension functions summary
GlanceModifier |
GlanceModifier.This function is deprecated. glance-wear-tiles is deprecated and will be removed |
GlanceModifier |
GlanceModifier.This function is deprecated. glance-wear-tiles is deprecated and will be removed |
Top-level properties summary
ProvidableCompositionLocal<TimeInterval?> |
This property is deprecated. glance-wear-tiles is deprecated and will be removed |
Top-level functions
AndroidLayoutElement
@Composable
funAndroidLayoutElement(
layoutElement: LayoutElementBuilders.LayoutElement
): Unit
Add LayoutElementBuilders.LayoutElement into the glance composition.
| Parameters | |
|---|---|
layoutElement: LayoutElementBuilders.LayoutElement |
the layout element to add to the composition |
compose
@ExperimentalGlanceWearTilesApi
suspend funcompose(
context: Context,
size: DpSize,
state: Any? = null,
content: @Composable () -> Unit
): WearTilesCompositionResult
Triggers the composition of content and returns the result.
| Parameters | |
|---|---|
context: Context |
The |
size: DpSize |
Size of the glance ui to be displayed at. |
state: Any? = null |
Local view state that can be passed to composition through |
content: @Composable () -> Unit |
Definition of the UI. |
| Returns | |
|---|---|
WearTilesCompositionResult |
Composition result containing the glance ui. |
Extension functions
border
fun GlanceModifier.border(width: Dp, color: ColorProvider): GlanceModifier
Apply a border around an element, border width is provided in Dp
| Parameters | |
|---|---|
width: Dp |
The width of the border, in DP |
color: ColorProvider |
The color of the border |
border
fun GlanceModifier.border(width: @DimenRes Int, color: ColorProvider): GlanceModifier
Apply a border around an element, border width is provided with dimension resource
| Parameters | |
|---|---|
width: @DimenRes Int |
The width of the border, value provided by a dimension resource |
color: ColorProvider |
The color of the border |
Top-level properties
LocalTimeInterval
val LocalTimeInterval: ProvidableCompositionLocal<TimeInterval?>
Time interval of the glance tile UI being generated.