0 purchases
startapp
Flutter - StartApp SDK Plugin #
Flutter plugin for StartApp SDK.
Currently, this plugin only support Android platform. The plugin is my weekend project, so any contributes to make it
better are welcome.
How to use the plugin #
Updating AndroidManifest.xml file
Base on StartApp SDK document
Add following meta-data tag with your StartApp App Id under the
<meta-data android:name="com.startapp.sdk.APPLICATION_ID" android:value="startapp_app_id" />
copied to clipboard
If you want to disable return ads (they are enabled by default) please add following meta-data tag:
<meta-data android:name="com.startapp.sdk.RETURN_ADS_ENABLED" android:value="false" />
copied to clipboard
If you want to disable splash ads (they are enabled by default) please add following meta-data tag:
<meta-data android:name="vn.momo.plugin.startapp.SPLASH_AD_ENABLED" android:value="false" />
copied to clipboard
Banner as widget
import 'package:startapp/startapp.dart';
...
// StartApp AdBanner as widget
AdBanner(),
copied to clipboard
Load interstitial ad
import 'package:startapp/startapp.dart';
...
await StartApp.showInterstitialAd();
copied to clipboard
Load rewarded video ad
import 'package:startapp/startapp.dart';
...
await StartApp.showRewardedAd(onVideoCompleted: () {
// video completed callback
}, onReceiveAd: () {
// ad received callback
}, onFailedToReceiveAd: (String error) {
// failed to received ad callback
});
copied to clipboard
Support #
If this package was helpful to you in delivering on your project or you just wanna to support this project, a cup of coffee would be highly appreciated ;-)
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.