Types

Link copied to clipboard

Marks the start of a presentation. A presentation is identified by its paywall_open: if the current id has already been reported by one (see SetLastOpen), or the view never got one at fetch time, a new id is minted here. Otherwise the id is kept, so a fresh view's load events and its first open share the id minted at fetch time.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class InitiateDismiss(val result: PaywallResult, val closeReason: PaywallCloseReason, val completion: () -> Unit?) : PaywallViewState.Updates
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Sets the lastOpen timestamp when the paywall is opened. Used for calculating shimmer visible duration (matching iOS behavior).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Updates the paywall state with data retrieved from the webview on dismiss.

Link copied to clipboard
class SetPresentationConfig(val styleOverride: PaywallPresentationStyle?, val completion: (Boolean) -> Unit?) : PaywallViewState.Updates
Link copied to clipboard
Link copied to clipboard
class SetRequest(val req: PresentationRequest, val publisher: MutableSharedFlow<PaywallState>?, val occurrence: TriggerRuleOccurrence?, val experiment: Experiment?) : PaywallViewState.Updates

Binds a presentation request to the view. The experiment and presentation source are bound in the same transition as the request so that PaywallViewState.info never combines one request's placement with another request's experiment. This is the only place they are written; MergePaywall deliberately leaves them alone.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Hides or displays the paywall spinner.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard