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 TypeMethodDescriptionint
Returns the background aware functionality used by this theme.int
getBackgroundAware
(boolean resolve) Returns the background aware functionality used by this theme.int
Get the contrast value used by this theme.int
getContrast
(boolean resolve) Get the contrast value used by this theme.float
Returns the contrast ratio for by this theme.boolean
Checks 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
-true
to 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:
true
if 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
BackgroundAware
object to allow for chaining of calls to set methods.
-
getContrast
int getContrast(boolean resolve) Get the contrast value used by this theme.- Parameters:
resolve
-true
to 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
BackgroundAware
object to allow for chaining of calls to set methods.
-