Class MediationHelper


  • public final class MediationHelper
    extends java.lang.Object
    Helper class for mediation adapters. There is no reason to use this in regular cases.
    • Constructor Summary

      Constructors 
      Constructor Description
      MediationHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void registerView​(NativeAd nativeAd, android.view.View view, java.util.List<android.view.View> clickableViews, 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

      • MediationHelper

        public MediationHelper()
    • Method Detail

      • registerView

        public static void registerView​(@NonNull
                                        NativeAd nativeAd,
                                        @NonNull
                                        android.view.View view,
                                        @Nullable
                                        java.util.List<android.view.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. If set, the only views in this list will be clickable. Otherwise, whole view will be clickable
        mediaAdView - specific MediaAdView for this NativeAd
        See Also:
        NativeAd, MediaAdView