Package 

Interface FontProvider


  • 
    public interface FontProvider
    
                        

    Implement this interface to provide custom fonts to the PaywallView. If you don't, the current material3 theme typography will be used. If you only want to use a single FontFamily for all text styles use CustomFontProvider. This can't be used when launching the paywall as an activity since the fonts are not parcelable/serializable. Use FontResourceProvider instead.

    • Method Summary

      Modifier and Type Method Description
      abstract FontFamily getFont(TypographyType type) Returns the font to be used for the given TypographyType.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getFont

         abstract FontFamily getFont(TypographyType type)

        Returns the font 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.