Interface BaseTheme<T extends BaseTheme<T>>

Type Parameters:
T - The type of the dynamic theme.
All Known Subinterfaces:
AccentTheme<T>, AutoTheme<T>, BackgroundAware<T>, BackgroundTheme<T>, CodeTheme<T>, CornerTheme<T>, DynamicColor<T>, ElevationTheme<T>, ErrorTheme<T>, PrimaryTheme<T>, ResourceTheme<T>, StringTheme<T>, StrokeTheme<T>, StyleTheme<T>, SurfaceTheme<T>, TextTheme<T>, TranslucentTheme<T>, TypeTheme<T>, WidgetTheme<T,V>
All Known Implementing Classes:
AppTheme, AppWidgetTheme

public interface BaseTheme<T extends BaseTheme<T>>
An interface to implement the base theme.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether this theme is host and can have child themes.
    setHost(boolean host)
    Sets whether this theme is host and can have child themes.
  • Method Details

    • isHost

      boolean isHost()
      Returns whether this theme is host and can have child themes.
      Returns:
      true if this theme is host and can have child themes.
    • setHost

      @NonNull T setHost(boolean host)
      Sets whether this theme is host and can have child themes.
      Parameters:
      host - true to set the theme as host.
      Returns:
      The BaseTheme object to allow for chaining of calls to set methods.