NamiCampaignManager class

Manager class which providing functionality related to displaying a paywall by launching a campaign

Constructors

NamiCampaignManager()

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

allCampaigns() Future<List<NamiCampaign>>
isCampaignAvailable({String? label, String? url}) Future<bool>
Returns true if a campaign is available matching the provided label or default @param provided label or null if default campaign
launch({String? label, String? url, dynamic onPaywallAction(NamiPaywallEvent?)?}) Future<LaunchCampaignResult>
Launch a campaign to raise a paywall
refresh() Future<List<NamiCampaign>>
Asks Nami to fetch the latest active campaigns for this device @return list of active campaigns after updating.
registerAvailableCampaignsHandler() Stream<List<NamiCampaign>>