BCOVOUXAdComponentDisplayContainer Class Reference

Inherits from NSObject
Conforms to BCOVPlaybackSessionConsumer
Declared in BCOVOUXAdComponentDisplayContainer.h

Overview

This class is used to display the ad UI and handle companion ads for BCOVOUX.

The UI includes a banner displaying the countdown until content starts and the learn more button and a skip button for skippable ads. This object only added the ad view to the hierarchy when an ad is going to be played, and it is removed when the ad is complete.

When an ad contains companions, this object will attempt to match the width and height of those companions with the width and height of the BCOVOUXCompanionSlots managed by this object. If no match is found, the companion will not be populated. If a match occurs, the companion slot will remain populated until another ad with a matching companion slot takes its place.

After creating this object, it must be added to the playback controller as a session consumer via [BCOVPlaybackController addSessionConsumer:].

Other Methods

– initWithCompanionSlots:

The designated initializer.

- (nullable instancetype)initWithCompanionSlots:(NSArray *)companionSlots

Parameters

companionSlots

An array of BCOVOUXCompanionSlots to be populated.

Return Value

An initialized instance.

Discussion

The designated initializer.

Declared In

BCOVOUXAdComponentDisplayContainer.h

– initWithAdComponentContainer:companionSlots:

The designated initializer.

- (nullable instancetype)initWithAdComponentContainer:(UIView *)adComponentContainer companionSlots:(NSArray *)companionSlots

Parameters

adComponentContainer

The view to display the ad UI.

companionSlots

An array of BCOVOUXCompanionSlots to be populated.

Return Value

An initialized instance.

Discussion

The designated initializer.

DEPRECATED Use [BCOVOUXAdComponentDisplayContainer initWithCompanionSlots:] instead

Declared In

BCOVOUXAdComponentDisplayContainer.h

  delegate

The delegate for the BCOVOUXAdComponentDisplayContainer.

@property (nullable, nonatomic, weak) id<BCOVOUXAdComponentDelegate> delegate

Discussion

The delegate for the BCOVOUXAdComponentDisplayContainer.

Declared In

BCOVOUXAdComponentDisplayContainer.h

Unavailable Methods

– init

- (nullable instancetype)init