PaywallInfo class

Contains information about a paywall.

Constructors

PaywallInfo.new({String? identifier, String? name, Experiment? experiment, List<String>? productIds, List<Product>? products, String? url, String? presentedByPlacementWithName, String? presentedByPlacementWithId, String? presentedByPlacementAt, String? presentedBy, String? presentationSourceType, String? responseLoadStartTime, String? responseLoadCompleteTime, String? responseLoadFailTime, double? responseLoadDuration, String? webViewLoadStartTime, String? webViewLoadCompleteTime, String? webViewLoadFailTime, double? webViewLoadDuration, String? productsLoadStartTime, String? productsLoadCompleteTime, String? productsLoadFailTime, double? productsLoadDuration, String? paywalljsVersion, bool? isFreeTrialAvailable, FeatureGatingBehavior? featureGatingBehavior, PaywallCloseReason? closeReason, List<LocalNotification>? localNotifications, List<ComputedPropertyRequest>? computedPropertyRequests, List<Survey>? surveys})

Properties

closeReason PaywallCloseReason?
An enum describing why this paywall was last closed. none if not yet closed.
final
computedPropertyRequests List<ComputedPropertyRequest>?
An array of requests to compute a device property associated with an placement at runtime.
final
experiment Experiment?
The trigger experiment that caused the paywall to present.
final
featureGatingBehavior FeatureGatingBehavior?
A FeatureGatingBehavior case that indicates whether the Superwall/register(placement:params:handler:feature:) feature block executes or not.
final
hashCode int
The hash code for this object.
no setterinherited
identifier String?
The identifier set for this paywall in the Superwall dashboard.
final
isFreeTrialAvailable bool?
Indicates whether the paywall is showing free trial content.
final
localNotifications List<LocalNotification>?
The local notifications associated with the paywall.
final
name String?
The name set for this paywall in Superwall's web dashboard.
final
paywalljsVersion String?
The paywall.js version installed on the paywall website.
final
presentationSourceType String?
The source function that retrieved the paywall. Either implicit, getPaywall, or register. nil only when preloading.
final
presentedBy String?
How the paywall was presented, either 'programmatically', 'identifier', or 'placement'
final
presentedByPlacementAt String?
The ISO date string describing when the placement triggered this paywall. Defaults to nil if triggeredByPlacement is false.
final
presentedByPlacementWithId String?
The Superwall internal id (for debugging) of the placement that triggered this Paywall. Defaults to nil if triggeredByPlacement is false.
final
presentedByPlacementWithName String?
The name of the placement that triggered this Paywall. Defaults to nil if triggeredByPlacement is false.
final
productIds List<String>?
An array of product IDs that this paywall is displaying in [Primary, Secondary, Tertiary] order.
final
products List<Product>?
The products associated with the paywall.
final
productsLoadCompleteTime String?
An ISO date string indicating when the paywall products finished loading.
final
productsLoadDuration double?
The time it took to load the paywall products.
final
productsLoadFailTime String?
An ISO date string indicating when the paywall products failed to load.
final
productsLoadStartTime String?
An ISO date string indicating when the paywall products began loading.
final
responseLoadCompleteTime String?
An ISO date string indicating when the paywall response finished loading.
final
responseLoadDuration double?
The time it took to load the paywall response.
final
responseLoadFailTime String?
An ISO date string indicating when the paywall response failed to load.
final
responseLoadStartTime String?
An ISO date string indicating when the paywall response began loading.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
surveys List<Survey>?
Surveys attached to a paywall.
final
url String?
The URL where this paywall is hosted.
final
webViewLoadCompleteTime String?
An ISO date string indicating when the paywall webview finished loading.
final
webViewLoadDuration double?
The time it took to load the paywall website.
final
webViewLoadFailTime String?
An ISO date string indicating when the paywall webview failed to load.
final
webViewLoadStartTime String?
An ISO date string indicating when the paywall webview began loading.
final

Methods

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

Operators

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

Static Methods

fromPigeon(PPaywallInfo? pigeonInfo) PaywallInfo?
Static factory method to create a PaywallInfo from a PPaywallInfo