Package-level declarations

Types

Link copied to clipboard

Class that allows to provide a font family for all text styles.

Link copied to clipboard

Class that allows to provide a font family for all text styles.

Link copied to clipboard
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.

Link copied to clipboard
data class GoogleFontProvider(@ArrayRes val certificates: Int, val providerAuthority: String = "com.google.android.gms.fonts", val providerPackage: String = "com.google.android.gms") : Parcelable

Represents a Google font provider.

Link copied to clipboard

Implement this interface to provide custom fonts to the PaywallActivityLauncher. If you don't, the default material3 theme fonts will be used. If you only want to use a single PaywallFontFamily for all text styles use CustomParcelizableFontProvider. Use FontProvider instead if you are using Compose with PaywallView or PaywallDialog.

Link copied to clipboard
sealed class PaywallFont : Parcelable

Represents a font. You can create either a GoogleFont or a ResourceFont.

Link copied to clipboard
data class PaywallFontFamily(val fonts: List<PaywallFont>) : Parcelable

Represents a font family. You can add one ore more PaywallFont with different weights and font styles.

Link copied to clipboard

Text styles for which the fonts can be overridden in the paywall.