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 theAdDisplayContainercreation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.ads.interactivemedia.v3.api.AdDisplayContainercreateAdDisplayContainer(GoogleIMAVideoAdPlayer googleIMAVideoAdPlayer)Creates theAdDisplayContainerwith the providedGoogleIMAVideoAdPlayerand the ViewGroup retrieved withAdDisplayContainerFactory.getViewContainer()android.view.ViewGroupgetViewContainer()Returns theViewGroupcontainer used for both, the creation of theGoogleIMAVideoAdPlayerand 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 theAdDisplayContainercreation.- Parameters:
viewGroup- the ad view container
-
-
Method Detail
-
createAdDisplayContainer
public com.google.ads.interactivemedia.v3.api.AdDisplayContainer createAdDisplayContainer(GoogleIMAVideoAdPlayer googleIMAVideoAdPlayer)
Description copied from interface:AdDisplayContainerFactoryCreates the
AdDisplayContainerwith the providedGoogleIMAVideoAdPlayerand the ViewGroup retrieved withAdDisplayContainerFactory.getViewContainer()- Specified by:
createAdDisplayContainerin interfaceAdDisplayContainerFactory- Parameters:
googleIMAVideoAdPlayer- the Brightcove Ad Player for Google IMA
-
getViewContainer
public android.view.ViewGroup getViewContainer()
Description copied from interface:AdDisplayContainerFactoryReturns the
ViewGroupcontainer used for both, the creation of theGoogleIMAVideoAdPlayerand theAdDisplayContainer- Specified by:
getViewContainerin interfaceAdDisplayContainerFactory
-
-