-
- All Implemented Interfaces:
-
com.brightcove.player.event.Component
@Emits(events = {SSAIEventType.RENDERED_COMPANION})@ListensFor(events = {SSAIEventType.START_COMPANION, SSAIEventType.END_COMPANION}) public class CompanionAdHandler extends AbstractComponent
Handles the displaying of the Companion Ad.
-
-
Constructor Summary
Constructors Constructor Description CompanionAdHandler(Context context, EventEmitter eventEmitter)
Build a manager given the Android context, the Brightcove video view and the event emitter.
-
Method Summary
Modifier and Type Method Description void
addCompanionContainer(ViewGroup container)
Add a container for showing companion ads. void
clearCompanionContainers()
Clear all the companion containers. -
-
Constructor Detail
-
CompanionAdHandler
CompanionAdHandler(Context context, EventEmitter eventEmitter)
Build a manager given the Android context, the Brightcove video view and the event emitter.- Parameters:
context
- The given Android context.eventEmitter
- The given Brightcove video view.
-
-
Method Detail
-
addCompanionContainer
void addCompanionContainer(ViewGroup container)
Add a container for showing companion ads. A phone or small tablet might have none orone. Larger devices may have multiple containers for showing companion ads.Note: At the moment only one Companion Ad is supported, calling addCompanionContainer willreplace previous container.
- Parameters:
container
- The given container to add.
-
clearCompanionContainers
void clearCompanionContainers()
Clear all the companion containers.
-
-
-
-