Interface DynamicColor<T extends DynamicColor<T>>

Type Parameters:
T - The type of the dynamic theme.
All Superinterfaces:
AccentTheme<T>, BackgroundTheme<T>, BaseTheme<T>, ElevationTheme<T>, ErrorTheme<T>, PrimaryTheme<T>, SurfaceTheme<T>
All Known Implementing Classes:
AppTheme, AppWidgetTheme

public interface DynamicColor<T extends DynamicColor<T>> extends BaseTheme<T>, BackgroundTheme<T>, SurfaceTheme<T>, PrimaryTheme<T>, AccentTheme<T>, ErrorTheme<T>
A BaseTheme to implement the dynamic color theme.
  • Method Details

    • isDynamicColor

      boolean isDynamicColor()
      Returns whether to the dynamic colors are used by this theme.
      Returns:
      true if the dynamic colors are used by this theme.
    • getDynamicColors

      @NonNull DynamicColors getDynamicColors()
      Return the dynamic colors used by the app.
      Returns:
      The dynamic colors used by the app.