Interface BackgroundAware<T extends BackgroundAware<T>>
- Type Parameters:
T- The type of the dynamic theme.
- All Superinterfaces:
BaseTheme<T>
- All Known Implementing Classes:
AppTheme,AppWidgetTheme
A
BaseTheme to implement the background aware theme.-
Method Summary
Modifier and TypeMethodDescriptionintReturns the background aware functionality used by this theme.intgetBackgroundAware(boolean resolve) Returns the background aware functionality used by this theme.intGet the contrast value used by this theme.intgetContrast(boolean resolve) Get the contrast value used by this theme.floatReturns the contrast ratio for by this theme.booleanChecks whether the background aware functionality is enabled.setBackgroundAware(int backgroundAware) Set the background aware functionality used by this theme.setContrast(int contrast) Set the contrast value used by this theme.
-
Method Details
-
getBackgroundAware
int getBackgroundAware(boolean resolve) Returns the background aware functionality used by this theme.- Parameters:
resolve-trueto resolve auto background aware.- Returns:
- The background aware functionality used by this theme.
-
getBackgroundAware
int getBackgroundAware()Returns the background aware functionality used by this theme.- Returns:
- The background aware functionality used by this theme.
-
isBackgroundAware
boolean isBackgroundAware()Checks whether the background aware functionality is enabled.- Returns:
trueif the background aware functionality is enabled.
-
setBackgroundAware
Set the background aware functionality used by this theme.- Parameters:
backgroundAware- The background aware functionality to be set.- Returns:
- The
BackgroundAwareobject to allow for chaining of calls to set methods.
-
getContrast
int getContrast(boolean resolve) Get the contrast value used by this theme.- Parameters:
resolve-trueto resolve auto contrast.- Returns:
- The contrast value used by this theme.
-
getContrast
int getContrast()Get the contrast value used by this theme.- Returns:
- The contrast value used by this theme.
-
getContrastRatio
float getContrastRatio()Returns the contrast ratio for by this theme.- Returns:
- The contrast ratio for by this theme.
-
setContrast
Set the contrast value used by this theme.- Parameters:
contrast- The contrast value to be set.- Returns:
- The
BackgroundAwareobject to allow for chaining of calls to set methods.
-