Package io.didomi.sdk.config.theme
Class NoticeTheme
-
- All Implemented Interfaces:
public final class NoticeThemeProvides Theme configuration for button, icons, background, text used on Notice Screen
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisStickyButtonsprivate final TextThemeprimaryButtonThemeprivate final TextThemesecondaryButtonThemeprivate final TextThemenoneButtonThemeprivate final TextThemelinkButtonThemeprivate final AppConfiguration.Theme.ContentThemeConfig.AlignmentdescriptionAlignmentprivate final TypefacedescriptionFontFamilyprivate final IntegerdescriptionTextColorprivate final FloatdescriptionTextSizeprivate final AppConfiguration.Theme.ContentThemeConfig.AlignmenttitleAlignmentprivate final TypefacetitleFontFamilyprivate final IntegertitleTextColorprivate final FloattitleTextSize
-
Constructor Summary
Constructors Constructor Description NoticeTheme(ThemeProvider themeProvider)
-
Method Summary
Modifier and Type Method Description final BooleanisStickyButtons()Sticky button status final TextThemegetPrimaryButtonTheme()Theme that should be used on notice buttons that should look like highlighted (primary) buttons. final TextThemegetSecondaryButtonTheme()Theme that should be used on notice buttons that should look like regular (secondary) buttons. final TextThemegetNoneButtonTheme()Theme that should be used on notice buttons with no background. final TextThemegetLinkButtonTheme()Theme that should be used on Notice buttons with link appearance. final AppConfiguration.Theme.ContentThemeConfig.AlignmentgetDescriptionAlignment()final TypefacegetDescriptionFontFamily()final IntegergetDescriptionTextColor()final FloatgetDescriptionTextSize()final AppConfiguration.Theme.ContentThemeConfig.AlignmentgetTitleAlignment()final TypefacegetTitleFontFamily()final IntegergetTitleTextColor()final FloatgetTitleTextSize()final TextThemegetButtonTheme(AppConfiguration.Theme.ButtonFormat format)Provide a theme for notice buttons based on the format passed. -
-
Constructor Detail
-
NoticeTheme
NoticeTheme(ThemeProvider themeProvider)
-
-
Method Detail
-
isStickyButtons
final Boolean isStickyButtons()
Sticky button status
-
getPrimaryButtonTheme
final TextTheme getPrimaryButtonTheme()
Theme that should be used on notice buttons that should look like highlighted (primary) buttons.
-
getSecondaryButtonTheme
final TextTheme getSecondaryButtonTheme()
Theme that should be used on notice buttons that should look like regular (secondary) buttons.
-
getNoneButtonTheme
final TextTheme getNoneButtonTheme()
Theme that should be used on notice buttons with no background.
-
getLinkButtonTheme
final TextTheme getLinkButtonTheme()
Theme that should be used on Notice buttons with link appearance.
-
getDescriptionAlignment
final AppConfiguration.Theme.ContentThemeConfig.Alignment getDescriptionAlignment()
-
getDescriptionFontFamily
final Typeface getDescriptionFontFamily()
-
getDescriptionTextColor
final Integer getDescriptionTextColor()
-
getDescriptionTextSize
final Float getDescriptionTextSize()
-
getTitleAlignment
final AppConfiguration.Theme.ContentThemeConfig.Alignment getTitleAlignment()
-
getTitleFontFamily
final Typeface getTitleFontFamily()
-
getTitleTextColor
final Integer getTitleTextColor()
-
getTitleTextSize
final Float getTitleTextSize()
-
getButtonTheme
final TextTheme getButtonTheme(AppConfiguration.Theme.ButtonFormat format)
Provide a theme for notice buttons based on the format passed.
- Parameters:
format- the format type as AppConfiguration.Theme.ButtonFormat
-
-
-
-