withNativeAd

Register a listener to handle GfpNativeAd. The GfpNativeAd should be shown in GfpNativeAdView.

Parameters

listener

An object that handles displaying native ads.


open fun withNativeAd(@NonNull options: GfpNativeAdOptions, @NonNull listener: GfpNativeAd.OnNativeAdLoadedListener): T

Register a listener to handle GfpNativeAd. The GfpNativeAd should be shown in GfpNativeAdView.

Parameters

options

An object that specifies various native ad options.

listener

An object that handles displaying native ads.