NimbusVungleAdRendererDelegate
protocol NimbusVungleAdRendererDelegate : AnyObject
-
The UIView returned from this method should have all of the data set from the native ad on children views such as the call to action, image data, title, privacy icon etc. The view returned from this method should not be attached to the container passed in as it will be attached at a later time during the rendering process.
- container: The container the layout will be attached to
nativeAd: The Vungle native ad with the relevant ad information
Declaration
Swift
func customViewForRendering(container: UIView, nativeAd: VungleNative) -> NimbusVungleNativeAdViewType
Parameters
container
The container the layout will be attached to
nativeAd
The Vungle native ad with the relevant ad information
Return Value
Your custom UIView (NimbusVungleNativeAdViewType) that will be attached to the container