Package com.brightcove.ima
Class DefaultAdDisplayContainerFactory
java.lang.Object
com.brightcove.ima.DefaultAdDisplayContainerFactory
- All Implemented Interfaces:
AdDisplayContainerFactory
The Default implementation of
AdDisplayContainerFactory
-
Constructor Summary
ConstructorDescriptionDefaultAdDisplayContainerFactory
(android.view.ViewGroup viewGroup) Creates an instance ofAdDisplayContainerFactory
, where the ViewGroup provided as the constructor parameter will be used for theAdDisplayContainer
creation. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.ads.interactivemedia.v3.api.AdDisplayContainer
createAdDisplayContainer
(GoogleIMAVideoAdPlayer googleIMAVideoAdPlayer) Creates theAdDisplayContainer
with the providedGoogleIMAVideoAdPlayer
and the ViewGroup retrieved withAdDisplayContainerFactory.getViewContainer()
android.view.ViewGroup
Returns theViewGroup
container used for both, the creation of theGoogleIMAVideoAdPlayer
and theAdDisplayContainer
-
Constructor Details
-
DefaultAdDisplayContainerFactory
public DefaultAdDisplayContainerFactory(@NonNull android.view.ViewGroup viewGroup) Creates an instance of
AdDisplayContainerFactory
, where the ViewGroup provided as the constructor parameter will be used for theAdDisplayContainer
creation.- Parameters:
viewGroup
- the ad view container
-
-
Method Details
-
createAdDisplayContainer
public com.google.ads.interactivemedia.v3.api.AdDisplayContainer createAdDisplayContainer(GoogleIMAVideoAdPlayer googleIMAVideoAdPlayer) Description copied from interface:AdDisplayContainerFactory
Creates the
AdDisplayContainer
with the providedGoogleIMAVideoAdPlayer
and the ViewGroup retrieved withAdDisplayContainerFactory.getViewContainer()
- Specified by:
createAdDisplayContainer
in interfaceAdDisplayContainerFactory
- Parameters:
googleIMAVideoAdPlayer
- the Brightcove Ad Player for Google IMA
-
getViewContainer
public android.view.ViewGroup getViewContainer()Description copied from interface:AdDisplayContainerFactory
Returns the
ViewGroup
container used for both, the creation of theGoogleIMAVideoAdPlayer
and theAdDisplayContainer
- Specified by:
getViewContainer
in interfaceAdDisplayContainerFactory
-