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

public interface ElevationTheme<T extends ElevationTheme<T>> extends BaseTheme<T>
A BaseTheme to implement the elevation theme.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    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.

    Methods inherited from interface com.pranavpandey.android.dynamic.theme.base.BaseTheme

    isHost, setHost
  • 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

      @NonNull T setElevation(int elevation)
      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.