Package 

Class VungleNativeAdapter

  • All Implemented Interfaces:
    com.vungle.ads.BaseAdListener , com.vungle.ads.NativeAdListener , io.cloudx.sdk.CloudXDestroyable

    @VisibleForTesting() 
    public final class VungleNativeAdapter
    extends CloudXNativeAdAdapter implements NativeAdListener
                        

    Vungle native ad adapter.

    Constructs a NativeAd tied to the configured placement, hands the bid markup to Vungle, and forwards Vungle's NativeAdListener callbacks into the SDK's CloudXNativeAdAdapterListener. On load success, the loaded ad is wrapped in a VungleCloudXNativeAd for downstream rendering by either the built-in NativeBannerBridge or a publisher-owned native view.

    Threading: the Vungle SDK does not document a main-thread guarantee for its native callbacks. This adapter forwards callbacks on the thread Vungle uses; downstream bridges that touch the view hierarchy are responsible for marshalling to the main thread.