@Emits(events="renderedCompanion") @ListensFor(events={"startCompanion","endCompanion","skipAd"}) public class CompanionAdHandler extends AbstractComponent
eventEmitter, listenerTokens
Constructor and Description |
---|
CompanionAdHandler(android.content.Context context,
EventEmitter eventEmitter)
Build a manager given the Android context, the Brightcove video view and the event emitter.
|
Modifier and Type | Method and Description |
---|---|
void |
addCompanionContainer(android.view.ViewGroup container)
Add a container for showing companion ads.
|
void |
clearCompanionContainers()
Clear all the companion containers.
|
addListener, addOnceListener, getEventEmitter, removeListener, removeListeners
public CompanionAdHandler(@NonNull android.content.Context context, @NonNull EventEmitter eventEmitter)
context
- The given Android context.eventEmitter
- The given Brightcove video view.public void addCompanionContainer(android.view.ViewGroup container)
container
- The given container to add.public void clearCompanionContainers()