Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

ironsource flutter mediation sdk

a flutter plugin that uses native platform views (ios & android) to show ironsource banner and interstitial ads!

ource-mediation-sdkvv

ource-mediation-sdk

getting started ��

initialize the plugin (android only):

android installing

manifest permissions #

add the following permissions to your androidmanifest.xml file inside the manifest tag but outside the tag:

    <uses-permission android:name="android.permission.internet" />
    <uses-permission android:name="android.permission.access_network_state" />

manifest activities #

add the following activities inside the tag in your androidmanifest:

    <activity
                android:name="com.ironsource.sdk.controller.controlleractivity"
                android:configchanges="orientation|screensize"
                android:hardwareaccelerated="true" />
    <activity
                android:name="com.ironsource.sdk.controller.interstitialactivity"
                android:configchanges="orientation|screensize"
                android:hardwareaccelerated="true"
                android:theme="@android:style/theme.translucent" />
    <activity
                android:name="com.ironsource.sdk.controller.openurlactivity"
                android:configchanges="orientation|screensize"
                android:hardwareaccelerated="true"
                android:theme="@android:style/theme.translucent" />

create object

    string testappid = "9b563ab5";
    interstitialhelper interstitialhelper = interstitialhelper(testappid);

show interstitial ads

  • show interstitial ad:

   //interstitial ready is can show?

   raisedbutton(onpressed: () {
              if (interstitialhelper.isshow()) {
                interstitialhelper.onshow();
              }

 

interstitial methods

*methods interstitialhelper


   //onpause interstitial just work android

   interstitialhelper.onpause();

   //onresume interstitial just work android

   interstitialhelper.onresume();

   //ondestroy interstitial

   interstitialhelper.ondestroy();
   
   //isshow interstitial isshowing ?
   interstitialhelper.isshow();
 
   //onshow interstitial show :)
   interstitialhelper.onshow();

show banner ad:

  ironsourcebanner(
      adsize: bannersize,
      listener: (
        ironsourceadevent event, map<string, dynamic> args) {
        handleevent(event, args, 'banner');
       },
     ),

future work

  • implement for type of rewarded and offerwall ads.

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.