NamiPaywallManager class

Class responsible for managing all aspects of a paywall in the Nami SDK

Constructors

NamiPaywallManager()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

blockPaywallAutoRaise(bool blockRaise) Future<void>
Displays a particular paywall in the app
dismissNamiPaywallIfOpen(bool animated) Future<bool>
Will animate the closing of the paywall if animated is true. Returns true when paywall is dismissed, may be immediate if not presented
paywallImpression(String developerPaywallId) Future<void>
iOS Only
paywallRaiseEvents() Stream<PaywallRaiseRequestData>
preparePaywallForDisplay({String? developerPaywallId, bool backgroundImageRequired = false, int? imageFetchTimeout}) Future<PreparePaywallResult>
Prepare paywall for display before calling raisePaywall. This method ensure that all data is available for the paywall before displaying it
raisePaywall({String? developerPaywallId}) Future<bool>
Displays the current live paywall in the app. Optionally pass developerPaywallId to display a particular paywall instead of live one
signInEvents() Stream<NamiPaywall>
Stream for when user presses sign in button on a paywall raised by Nami system