startapp_sdk_flutter 0.0.4 startapp_sdk_flutter: ^0.0.4 copied to clipboard
A startapp ads plugin
Startapp SDK Plugin #
Supported both iOS and Android. Note: Only show banner ad currently (still beta with fixed size)
Getting Started #
- Initialization
Startapp.instance.initialize('your_app_id');
- Add banner ad
StartappBanner(
listener: handleEvent,
adSize: StartappBannerSize.BANNER,
)
- Events
void handleEvent(StartappEvent event) {
switch (event) {
case StartappEvent.onClick:
print('Received: onClick!');
break;
case StartappEvent.onReceiveAd:
print('Received: onReceiveAd');
break;
case StartappEvent.onImpression:
print('Received: onImpression');
break;
case StartappEvent.onFailedToReceiveAd:
print('Received: onFailedToReceiveAd');
break;
default:
}
}
Getting Started #
Implement Interstitial Ad and Rewarded Video Ad
Support #
Thanks for your coffee :D