Package com.brightcove.ima
Class DefaultAdDisplayContainerFactory
- java.lang.Object
-
- com.brightcove.ima.DefaultAdDisplayContainerFactory
-
- All Implemented Interfaces:
AdDisplayContainerFactory
public class DefaultAdDisplayContainerFactory extends java.lang.Object implements AdDisplayContainerFactory
The Default implementation ofAdDisplayContainerFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultAdDisplayContainerFactory(android.view.ViewGroup viewGroup)
Creates an instance ofAdDisplayContainerFactory
, where the ViewGroup provided as the constructor parameter will be used for theAdDisplayContainer
creation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.ads.interactivemedia.v3.api.AdDisplayContainer
createAdDisplayContainer(GoogleIMAVideoAdPlayer googleIMAVideoAdPlayer)
Creates theAdDisplayContainer
with the providedGoogleIMAVideoAdPlayer
and the ViewGroup retrieved withAdDisplayContainerFactory.getViewContainer()
android.view.ViewGroup
getViewContainer()
Returns theViewGroup
container used for both, the creation of theGoogleIMAVideoAdPlayer
and theAdDisplayContainer
-
-
-
Constructor Detail
-
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 Detail
-
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
-
-