Package 

Class NativeAdViewManager

    • Method Summary

      Modifier and Type Method Description
      final View showAd(Context context, Map<String, Object> ad, NativeAdSettings adViewSettings) Shows a native ad view with the specified configuration.
      • Methods inherited from class java.lang.Object

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

      • NativeAdViewManager

        NativeAdViewManager(Config config)
    • Method Detail

      • showAd

         final View showAd(Context context, Map<String, Object> ad, NativeAdSettings adViewSettings)

        Shows a native ad view with the specified configuration. Automatically determines the view type based on parameters:

        • If contentView is provided → Custom view with user layout

        • If adType is NativeAdStyle.Vertical → Vertical layout

        • If adType is NativeAdStyle.Horizontal → Horizontal layout

        Parameters:
        context - Application context required for view creation
        ad - Map containing the parsed native ad data
        adViewSettings - NativeAdSettings with configuration