-
- All Implemented Interfaces:
-
com.revenuecat.purchases.ui.revenuecatui.fonts.ParcelizableFontProvider
public final class CustomParcelizableFontProvider implements ParcelizableFontProvider
Class that allows to provide a font family for all text styles.
-
-
Constructor Summary
Constructors Constructor Description CustomParcelizableFontProvider(PaywallFontFamily fontFamily)
-
Method Summary
Modifier and Type Method Description PaywallFontFamilygetFont(TypographyType type)Returns the PaywallFontFamily to be used for the given TypographyType. -
-
Constructor Detail
-
CustomParcelizableFontProvider
CustomParcelizableFontProvider(PaywallFontFamily fontFamily)
- Parameters:
fontFamily- the PaywallFontFamily to be used for all text styles.
-
-
Method Detail
-
getFont
PaywallFontFamily getFont(TypographyType type)
Returns the PaywallFontFamily to be used for the given TypographyType. If null is returned, the default font will be used.
- Parameters:
type- the TypographyType for which the font is being requested.
-
-
-
-