Builder

class Builder(var dismissRequest: () -> Unit)

Use this builder to create an instance of PaywallOptions.

Constructors

Link copied to clipboard
constructor(dismissRequest: () -> Unit)

Properties

Link copied to clipboard
var dismissRequest: () -> Unit

Dismiss the paywall, i.e. remove the view, navigate to another screen, etc. Will be called when the close button is pressed (if enabled) or when a purchase succeeds.

Link copied to clipboard

Optional listener, called for various purchase and restore events.

Link copied to clipboard
var offering: <Error class: unknown class>?

Optional Offering object obtained through getOfferings().

Link copied to clipboard

Whether to display a close button on the paywall screen. Only available when using Paywall. Ignored when using PaywallFooter. Defaults to false.

Functions

Link copied to clipboard

Creates a PaywallOptions instance with the specified properties.