-
- All Implemented Interfaces:
-
com.google.android.horologist.tiles.render.TileLayoutRenderer
public final class ThemePreviewTileRenderer extends SingleTileLayoutRenderer<Unit, Unit>
Tile that renders components with typical layouts and a theme color.
-
-
Field Summary
Fields Modifier and Type Field Description private final Colorsthemeprivate final LongfreshnessIntervalMillisprivate final Contextcontextprivate final BooleandebugResourceMode
-
Constructor Summary
Constructors Constructor Description ThemePreviewTileRenderer(Context context, Colors thisTheme)
-
Method Summary
Modifier and Type Method Description final ColorsgetTheme()LonggetFreshnessIntervalMillis()final ContextgetContext()The context to avoid passing in through each render method. final BooleangetDebugResourceMode()ColorscreateTheme()Create a material theme that should be applied to all components. LayoutElementBuilders.LayoutElementrenderTile(Unit state, DeviceParametersBuilders.DeviceParameters deviceParameters)Render a single tile as a LayoutElement, that will be the only item in the timeline. UnitproduceRequestedResources(ResourceBuilders.Resources.Builder $self, Unit resourceState, DeviceParametersBuilders.DeviceParameters deviceParameters, List<String> resourceIds)Add resources directly to the builder. -
Methods inherited from class com.google.android.horologist.tiles.preview.ThemePreviewTileRenderer
createState, getResourcesVersionForTileState, produceRequestedResources, renderTimeline -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getFreshnessIntervalMillis
Long getFreshnessIntervalMillis()
-
getContext
final Context getContext()
The context to avoid passing in through each render method.
-
getDebugResourceMode
final Boolean getDebugResourceMode()
-
createTheme
Colors createTheme()
Create a material theme that should be applied to all components.
-
renderTile
LayoutElementBuilders.LayoutElement renderTile(Unit state, DeviceParametersBuilders.DeviceParameters deviceParameters)
Render a single tile as a LayoutElement, that will be the only item in the timeline.
-
produceRequestedResources
Unit produceRequestedResources(ResourceBuilders.Resources.Builder $self, Unit resourceState, DeviceParametersBuilders.DeviceParameters deviceParameters, List<String> resourceIds)
Add resources directly to the builder.
-
-
-
-