PaywallContext class

Additional context for paywall presentation.

All four fields now cross to native. Before iOS 1.0.70 / Android 1.0.42 the halves were disjoint: Dart declared {placement, customData} while the native plugins read only {placement, experiment, variant}. So a host could set neither experiment/variant (not declared here) nor customData (declared here, silently dropped at the channel).

Constructors

PaywallContext({String? placement, String? experiment, String? variant, Map<String, dynamic>? customData})
const

Properties

customData → Map<String, dynamic>?
Arbitrary per-presentation attributes. Merged into the paywall_view event's properties by the native SDK, so they are queryable in the warehouse alongside paywall_id and placement. Keys colliding with a reserved property (paywall_id, placement) are dropped by native.
final
experiment → String?
Experiment id this presentation belongs to, when the host drives its own assignment.
final
hashCode → int
The hash code for this object.
no setterinherited
placement → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
variant → String?
Variant within experiment.
final

Methods

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

Operators

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