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 Summary
Modifier and TypeMethodDescriptionReturn the dynamic colors used by the app.booleanReturns whether to the dynamic colors are used by this theme.Methods inherited from interface com.pranavpandey.android.dynamic.theme.base.AccentTheme
getAccentColor, getAccentColor, getAccentColor, getAccentColorDark, getAccentColorDark, getAccentColorDark, getTintAccentColor, getTintAccentColor, getTintAccentColor, getTintAccentColorDark, getTintAccentColorDark, getTintAccentColorDark, setAccentColor, setAccentColor, setAccentColorDark, setAccentColorDark, setTintAccentColor, setTintAccentColorDarkMethods inherited from interface com.pranavpandey.android.dynamic.theme.base.BackgroundTheme
getBackgroundColor, getBackgroundColor, getBackgroundColor, getTintBackgroundColor, getTintBackgroundColor, getTintBackgroundColor, isDarkTheme, isInverseTheme, isShowDividers, setBackgroundColor, setBackgroundColor, setTintBackgroundColorMethods inherited from interface com.pranavpandey.android.dynamic.theme.base.BaseTheme
isHost, setHostMethods inherited from interface com.pranavpandey.android.dynamic.theme.base.ElevationTheme
getElevation, getElevation, isElevation, setElevationMethods inherited from interface com.pranavpandey.android.dynamic.theme.base.ErrorTheme
getErrorColor, getErrorColor, getErrorColor, getTintErrorColor, getTintErrorColor, getTintErrorColor, setErrorColor, setErrorColor, setTintErrorColorMethods inherited from interface com.pranavpandey.android.dynamic.theme.base.PrimaryTheme
getPrimaryColor, getPrimaryColor, getPrimaryColor, getPrimaryColorDark, getPrimaryColorDark, getPrimaryColorDark, getTintPrimaryColor, getTintPrimaryColor, getTintPrimaryColor, getTintPrimaryColorDark, getTintPrimaryColorDark, getTintPrimaryColorDark, setPrimaryColor, setPrimaryColor, setPrimaryColorDark, setPrimaryColorDark, setTintPrimaryColor, setTintPrimaryColorDarkMethods inherited from interface com.pranavpandey.android.dynamic.theme.base.SurfaceTheme
getSurfaceColor, getSurfaceColor, getSurfaceColor, getTintSurfaceColor, getTintSurfaceColor, getTintSurfaceColor, isBackgroundSurface, setSurfaceColor, setSurfaceColor, setTintSurfaceColor
-
Method Details
-
isDynamicColor
boolean isDynamicColor()Returns whether to the dynamic colors are used by this theme.- Returns:
trueif the dynamic colors are used by this theme.
-
getDynamicColors
Return the dynamic colors used by the app.- Returns:
- The dynamic colors used by the app.
-