ScaleMonk class

Constructors

ScaleMonk()

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 Properties

initialized ValueNotifier<bool>
getter/setter pair
setBannerCallback ← dynamic Function(BannerAdEvent event)
Define a callback to track Banner Ad events.
no getter
setInterstitialCallback ← dynamic Function(InterstitialAdEvent event)
Define a callback to track Interstitial Ad events.
no getter
setRewardCallback ← dynamic Function(RewardedVideoAdEvent event)
Define a callback to track Reward Ad events.
no getter

Static Methods

initialize({String? iosApplicationId}) Future<bool>
ScaleMonkAds uses your unique applicationId to identify your app. To obtain this id, go to the ScaleMonk Dashboard, in the menu select Manage > Applications and copy the application id of your app.
isRewardedReadyToShow({String? tag}) Future<bool>
You'll likely want to check availability before offering the user the possibility of seeing an ad to get a reward using this method
requestTrackingAuthorization() Future<bool>
setHasGDPRConsent({required bool status}) → void
In order to facilitate compliance with General Data Protection Regulation (GDPR), this method takes the consent status of users. If consent is given, the partners mediation providers will be able to send targeted ads. By sending YES user accepts to share information to receive tarheted ads. By sending NO user accepts to share information to receive tarheted ads.
setIsApplicationChildDirected(bool value) → void
This method allows you to specify whether you would like your app to be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA). http://business.ftc.gov/privacy-and-security/childrens-privacy If you call this method with YES, you are indicating that your app should be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA)
setUserCantGiveGDPRConsent({required bool status}) → void
If the user is under age of consent call this method with YES, otherwise you can call this method with false. If you dont call this method we assume the user is not under age of consent and you have to send whether the user accpeted or not the consent
show(AdType adType, {String? tag}) → void
Shows an ad of certain type adType.
stopLoadingBanners() → void
This removes the current Banner and stop loading more banners.