FlutterAppPopupAd class

Constructors

FlutterAppPopupAd()

Properties

apps List<AppInfo>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thisAppId String
getter/setter pair

Methods

canShowAd(int freq) bool
canUpdateAds(int updateFreqDays) bool
customPrint(String message) → void
determineAndShowAd(BuildContext context, {int freq = 0}) Future<void>
Determines the next app ad to be shown and shows it via a showDialog freq - sets the number of times the app must be opened to show the next ad. If set to 0, an ad will be shown everytime the determineAndShowAd method is called
initializeWithApps(List<AppInfo> apps) → void
Initializes the package with a list of apps that you would like to advertise Alternative is to use initializeWithUrl if you wish to fetch app via a public URL
initializeWithUrl(String url, {int updateFreqDays = 1}) Future<void>
Fetches a list of apps to be advertised from the URL (Get), set updateFreqDays to limit the http calls. Ensure that the response matches the AppInfo model otherwise this will fail. Alternative is to use initializeWithApps if you would like the pass the data in directly
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

isAppInstalled(AppInfo app) Future<bool>