Interface ElevationTheme<T extends ElevationTheme<T>>
- Type Parameters:
T- The type of the dynamic theme.
- All Superinterfaces:
BaseTheme<T>
- All Known Subinterfaces:
DynamicColor<T>,SurfaceTheme<T>
- All Known Implementing Classes:
AppTheme,AppWidgetTheme
A
BaseTheme to implement the elevation theme.-
Method Summary
Modifier and TypeMethodDescriptionintReturns the elevation functionality used by this theme.intgetElevation(boolean resolve) Returns the elevation functionality used by this theme.booleanChecks whether the elevation functionality is enabled.setElevation(int elevation) Set the elevation functionality used by this theme.
-
Method Details
-
getElevation
int getElevation(boolean resolve) Returns the elevation functionality used by this theme.- Parameters:
resolve-trueto resolve auto elevation.- Returns:
- The elevation functionality used by this theme.
-
getElevation
int getElevation()Returns the elevation functionality used by this theme.- Returns:
- The elevation functionality used by this theme.
-
isElevation
boolean isElevation()Checks whether the elevation functionality is enabled.- Returns:
trueif the elevation functionality is enabled.
-
setElevation
Set the elevation functionality used by this theme.- Parameters:
elevation- The elevation functionality to be set.- Returns:
- The
ElevationThemeobject to allow for chaining of calls to set methods.
-