TapsellPlus class

Want to do anything with TapsellPlus? Use this class.

This class gives all the functionality needed for tapsell plus users

Constructors

TapsellPlus()

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

destroyStandardBanner(String responseId) Future<bool>
Destroys the standard banner which is shown responseId is the Id of the request used to show the ad. And now it's used to destroy it Note: After destroying the ad you need to request a new one in order to show an ad. This responseId is useless now
displayStandardBanner() Future<bool>
If the displayed standard banner was hidden using TapsellPlus.hideStandardBanner, here's Ctrl+Z of it
hideStandardBanner() Future<bool>
Hides the view component of the standard banner. Note: It will not destroy the ad. It simply hides the view
initialize(String appId) Future<bool>
Initializes the SDK This method needs and MUST be called before every usage of this plugin It's also suggested to call this in main()
nativeBannerAdClicked(String responseId) Future<bool>
When you show the ad and user presses the nativeAd's call to action button, you must call this function so the ad process goes correctly
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onAdMobNativeAdRequest(String zoneId, String responseId, String adNetworkZoneId) Future<bool>
requestInterstitialAd(String zoneId) Future<String>
Requests for an interstitial ad (Gives you an Id to use it for showing it) Interstitial Ad is a full screen banner. This method returns RequestId as a Future.
requestNativeAd(String zoneId) Future<Map>
Requests a native ad
requestRewardedVideoAd(String zoneId) Future<String>
Requests for an rewarded ad (Gives you an Id to use it for showing it) RewardedVideo Ad is a full screen video. This method returns RequestId as a Future.
requestStandardBannerAd(String zoneId, TapsellPlusBannerType bannerType, {required dynamic onResponse(Map<String, String>), required dynamic onError(Map<String, String>)}) Future<bool>
Requests for and standard banner
sendAdMobNativeAdFailedReport(String adNetworkZoneId, String zoneId, LoadAdError error) Future<bool>
sendAdMobNativeAdShowStart(String responseId, String adNetworkZoneId) Future<bool>
sendAdMobNativeAdSuccessReport(String responseId, String adNetworkZoneId) Future<bool>
sendAdMobNativeAdWin(String responseId, String adNetworkZoneId) Future<bool>
setDebugMode(LogLevel logLevel) Future<bool>
Sets debug mode logLevel determines the level of log cat logs
setGDPRConsent(bool consent) Future<bool>
Sets the user's consent about advertising policy resolves with true and rejects with false if any issue had occurred
showAdmobNativeAd(String responseId, String unitId, String factoryId, {dynamic onOpened(NativeAdPayload)?, dynamic onLoaded(NativeAdPayload)?, dynamic onError(Map<String, String>)?}) Future<NativeAd>
Shows the ad using the unitId and factoryId. unitId exists in requestNativeAd result factoryId is the registered id of the factory you used to create the ad from your Activity
showInterstitialAd(String responseId, {dynamic onOpened(Map<String, String>)?, dynamic onClosed(Map<String, String>)?, dynamic onRewarded(Map<String, String>)?, dynamic onError(Map<String, String>)?}) Future<bool>
After getting the responseId from the request method, use it to show the ad When the ad is opened to the user, onOpened will be called if the showing has issues and failed to show the ad, onError will tell you why
showNativeAd(String responseId, {String? admobFactoryId, dynamic onOpened(NativeAdPayload)?, dynamic onLoaded(NativeAdPayload)?, dynamic onError(Map<String, String>)?}) Future<bool>
Shows the ad using the responseId you received from requesting for one
showRewardedVideoAd(String responseId, {dynamic onOpened(Map<String, String>)?, dynamic onClosed(Map<String, String>)?, dynamic onRewarded(Map<String, String>)?, dynamic onError(Map<String, String>)?}) Future<bool>
Shows the ad requested using the responseId After calling the Ad it will open and call onOpened, then starts playing (if completed and not skipped, onRewarded will be called - Useful for giving the user some rewards) then closes with a banner at the end and calls onClosed
showStandardBannerAd(String responseId, TapsellPlusHorizontalGravity horizontalGravity, TapsellPlusVerticalGravity verticalGravity, {EdgeInsets? margin, dynamic onOpened(Map<String, String>)?, dynamic onError(Map<String, String>)?}) Future<bool>
Shows the standard banner requested via responseId
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance TapsellPlus
Static modifier for tapsell plus Instead of defining everything as a static. Use TapsellPlus.instance.*
getter/setter pair