PluginRendererFactory
@objcMembers
public class PluginRendererFactory : NSObject
A factory that resolves the appropriate plugin renderer for a given bid and creates banner views or interstitial controllers through it.
Callers should prepare the AdUnitConfig before invoking this factory. The
factory only handles renderer resolution and SDK-renderer fallback, so
caller-owned configuration such as banner size, interstitial flags, rewarded
flags, video controls, and video parameters is preserved.
-
Creates a banner view using a caller-prepared ad unit configuration.
Declaration
Swift
public static func createBannerView( with frame: CGRect, bid: Bid, adConfiguration: AdUnitConfig, loadingDelegate: DisplayViewLoadingDelegate, interactionDelegate: DisplayViewInteractionDelegate ) -> PrebidMobileDisplayViewProtocol?Parameters
frameThe frame for the banner view.
bidThe bid containing renderer preference metadata.
adConfigurationPrepared ad unit configuration.
loadingDelegateDelegate for ad loading events.
interactionDelegateDelegate for ad interaction events.
Return Value
A banner view conforming to
PrebidMobileDisplayViewProtocol, ornilon failure. -
Creates an interstitial controller using a caller-prepared ad unit configuration.
Declaration
Swift
public static func createInterstitialController( bid: Bid, adConfiguration: AdUnitConfig, loadingDelegate: InterstitialControllerLoadingDelegate, interactionDelegate: InterstitialControllerInteractionDelegate ) -> PrebidMobileInterstitialControllerProtocol?Parameters
bidThe bid containing renderer preference metadata.
adConfigurationPrepared ad unit configuration.
loadingDelegateDelegate for interstitial loading events.
interactionDelegateDelegate for interstitial interaction events.
Return Value
An interstitial controller conforming to
PrebidMobileInterstitialControllerProtocol, ornilon failure.