Interface ErrorTheme<T extends ErrorTheme<T>>

Type Parameters:
T - The type of the dynamic theme.
All Superinterfaces:
BaseTheme<T>
All Known Subinterfaces:
DynamicColor<T>
All Known Implementing Classes:
AppTheme, AppWidgetTheme

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

    Modifier and Type
    Method
    Description
    int
    Returns the error color used by this theme.
    int
    getErrorColor(boolean resolve)
    Returns the error color used by this theme.
    int
    getErrorColor(boolean resolve, boolean inverse)
    Returns the error color used by this theme.
    int
    Returns the error tint color used by this theme.
    int
    getTintErrorColor(boolean resolve)
    Returns the error tint color used by this theme.
    int
    getTintErrorColor(boolean resolve, boolean inverse)
    Returns the error tint color used by this theme.
    setErrorColor(int errorColor)
    Set the error color used by this theme.
    setErrorColor(int errorColor, boolean generateTint)
    Set the error color used by this theme.
    setTintErrorColor(int tintErrorColor)
    Set the error tint color used by this theme.

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

    isHost, setHost
  • Method Details

    • getErrorColor

      @ColorInt int getErrorColor(boolean resolve, boolean inverse)
      Returns the error color used by this theme.
      Parameters:
      resolve - true to resolve the auto color.
      inverse - true to resolve the inverse color.
      Returns:
      The error color used by this theme.
    • getErrorColor

      @ColorInt int getErrorColor(boolean resolve)
      Returns the error color used by this theme.
      Parameters:
      resolve - true to resolve the auto color.
      Returns:
      The error color used by this theme.
    • getErrorColor

      @ColorInt int getErrorColor()
      Returns the error color used by this theme.
      Returns:
      The error color used by this theme.
    • setErrorColor

      @NonNull T setErrorColor(@ColorInt int errorColor, boolean generateTint)
      Set the error color used by this theme.
      Parameters:
      errorColor - The error color to be set.
      generateTint - true to automatically generate the tint color also.
      Returns:
      The ErrorTheme object to allow for chaining of calls to set methods.
      See Also:
    • setErrorColor

      @NonNull T setErrorColor(@ColorInt int errorColor)
      Set the error color used by this theme.

      It will automatically generate the tint color also.

      Parameters:
      errorColor - The error color to be set.
      Returns:
      The ErrorTheme object to allow for chaining of calls to set methods.
      See Also:
    • getTintErrorColor

      @ColorInt int getTintErrorColor(boolean resolve, boolean inverse)
      Returns the error tint color used by this theme.
      Parameters:
      resolve - true to resolve the auto color.
      inverse - true to resolve the inverse color.
      Returns:
      The error tint color used by this theme.
    • getTintErrorColor

      @ColorInt int getTintErrorColor(boolean resolve)
      Returns the error tint color used by this theme.
      Parameters:
      resolve - true to resolve the auto color.
      Returns:
      The error tint color used by this theme.
    • getTintErrorColor

      @ColorInt int getTintErrorColor()
      Returns the error tint color used by this theme.
      Returns:
      The error tint color used by this theme.
    • setTintErrorColor

      @NonNull T setTintErrorColor(@ColorInt int tintErrorColor)
      Set the error tint color used by this theme.
      Parameters:
      tintErrorColor - The error tint color to be set.
      Returns:
      The ErrorTheme object to allow for chaining of calls to set methods.