-
public final class PaywallModulePaywall module namespace.
-
-
Field Summary
Fields Modifier and Type Field Description private volatile BooleanskipNextAutoDismissOnRestore
-
Method Summary
Modifier and Type Method Description final BooleangetSkipNextAutoDismissOnRestore()SPEC-401 Fix 1C — host opt-out for SDK auto-dismiss-on-restore-success. final UnitsetSkipNextAutoDismissOnRestore(Boolean skipNextAutoDismissOnRestore)SPEC-401 Fix 1C — host opt-out for SDK auto-dismiss-on-restore-success. final Unitpresent(Activity activity, String paywallId, PaywallContext context)Present a paywall. final UnitsetDelegate(AppDNAPaywallDelegate delegate)Set a delegate for paywall events. -
-
Method Detail
-
getSkipNextAutoDismissOnRestore
final Boolean getSkipNextAutoDismissOnRestore()
SPEC-401 Fix 1C — host opt-out for SDK auto-dismiss-on-restore-success.
When set to
true, the next successful Restore tap on a presented paywall will fireonPaywallRestoreCompletedto the delegate as usual, but the SDK will NOT auto-finish the PaywallActivity. The host owns dismissal in this case (typical pattern: show a "Restored — tap continue when ready" overlay, then callactivity.finish()from a button tap).One-shot: PaywallManager.handleRestore reads + clears this flag each time it processes a restore. After the next restore (success or failure), the flag resets to
falseso subsequent paywall presentations get the default auto-dismiss behavior.Mirrors iOS
AppDNA.paywall.skipNextAutoDismissOnRestore.
-
setSkipNextAutoDismissOnRestore
final Unit setSkipNextAutoDismissOnRestore(Boolean skipNextAutoDismissOnRestore)
SPEC-401 Fix 1C — host opt-out for SDK auto-dismiss-on-restore-success.
When set to
true, the next successful Restore tap on a presented paywall will fireonPaywallRestoreCompletedto the delegate as usual, but the SDK will NOT auto-finish the PaywallActivity. The host owns dismissal in this case (typical pattern: show a "Restored — tap continue when ready" overlay, then callactivity.finish()from a button tap).One-shot: PaywallManager.handleRestore reads + clears this flag each time it processes a restore. After the next restore (success or failure), the flag resets to
falseso subsequent paywall presentations get the default auto-dismiss behavior.Mirrors iOS
AppDNA.paywall.skipNextAutoDismissOnRestore.
-
present
final Unit present(Activity activity, String paywallId, PaywallContext context)
Present a paywall.
-
setDelegate
final Unit setDelegate(AppDNAPaywallDelegate delegate)
Set a delegate for paywall events.
-
-
-
-