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 TypeMethodDescriptionint
Returns the elevation functionality used by this theme.int
getElevation
(boolean resolve) Returns the elevation functionality used by this theme.boolean
Checks 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
-true
to 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:
true
if the elevation functionality is enabled.
-
setElevation
Set the elevation functionality used by this theme.- Parameters:
elevation
- The elevation functionality to be set.- Returns:
- The
ElevationTheme
object to allow for chaining of calls to set methods.
-