Skip to end of metadata
Go to start of metadata

JavaScript is disabled on your browser.
com.appnexus.opensdk

Interface AppEventListener



  • public interface AppEventListener
    Implement this interface and pass it to your BannerAdView and InterstitialAdView objects to receive app events from the ad.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void onAppEvent(AdView adView, java.lang.String name, java.lang.String data)
      Called when the ad has sent the app an event via the AppNexus Javascript API for Mobile call 'anjam.DispatchAppEvent(name, data);' A simple example:
    • Method Detail

      • onAppEvent

        void onAppEvent(AdView adView,
                        java.lang.String name,
                        java.lang.String data)
        Called when the ad has sent the app an event via the AppNexus Javascript API for Mobile call 'anjam.DispatchAppEvent(name, data);' A simple example:
         
        
          AppEventListener appEventListener = new AppEventListener() {
               @Override
              public void onAppEvent(AdView adView, String name, String data) {
                  Log.d("APP_TAG", "AppEvent received: " + name + ", " + data);
              }
          }
         
         
        Parameters:
        adView - The AdView that loaded the ad.
        name - the event name passed by the ad
        data - the event data passed by the ad

  • No labels