Class MediationHelper

  • All Implemented Interfaces:

    
    public final class MediationHelper
    
                        

    Helper class for mediation adapters. There is no reason to use this in regular cases.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static void registerView(@NonNull() NativeAd nativeAd, @NonNull() View view, @Nullable() List<View> clickableViews, @Nullable() MediaAdView mediaAdView) Proxy method for registration with specified MediaView.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • registerView

         static void registerView(@NonNull() NativeAd nativeAd, @NonNull() View view, @Nullable() List<View> clickableViews, @Nullable() MediaAdView mediaAdView)

        Proxy method for registration with specified MediaView. Used in mediation adapters to prevent playing media content in wrong MediaView in case of multiple mediated views one into another.

        Parameters:
        nativeAd - registered NativeAd object
        view - view to register
        clickableViews - specific clickable views inside Advertising view.
        mediaAdView - specific MediaAdView for this NativeAd