flutter_startapp 0.0.1 copy "flutter_startapp: ^0.0.1" to clipboard
flutter_startapp: ^0.0.1 copied to clipboard

discontinued

StartApp Ads

flutter_startapp #

Note: Currently only Android platform is supported.

Note: AndroidX is required.

Note: only show interstitial and video rewarded ads.

Getting Started #

  1. Initialization

Call Startapp.init(); during app initialization.

 Startapp.init(appId: 'your_app_id', defaultAd: true or false);

2. Request Interstitial Ad and Rewarded Video Ad #

 Interstitial(listener: _listener)..load();

On Class Listener implements AdEventListener

 class Event implements AdEventListener {
  @override
  void adClicked() {
    // TODO: implement adClicked
  }

  @override
  void adDisplayed() {
    // TODO: implement adDisplayed
  }

  @override
  void adHidden() {
    // TODO: implement adHidden
  }

  @override
  void adNotDisplayed() {
    // TODO: implement adNotDisplayed
  }

  @override
  void onFailedToReceiveAd() {
    // TODO: implement onFailedToReceiveAd
  }

  @override
  void onReceiveAd() {
    Startapp.showAd();
  }

  @override
  void onVideoCompleted() {
  // TODO: implement onVideoCompleted
  }
}

Events #

Event Description
onReceiveAd Called in response to an ad request when the request has been successfully filled.
onFailedToReceiveAd Called in response to an ad request when the request failed to fill.
adDisplayed Called when the interstitial ad opens.
adNotDisplayed Called when an ad not open
adClicked Called when an user click to ad
adHidden Called when an ad is close
onVideoCompleted Called when the rewarded video ends successfully.

Future Work #

Implement for iOS platform, Banner Ads, NativeAds,

More Info #

1
likes
20
pub points
0%
popularity

Publisher

unverified uploader

StartApp Ads

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_startapp