Package com.brightcove.ima
Class DefaultAdDisplayContainerFactory
java.lang.Object
com.brightcove.ima.DefaultAdDisplayContainerFactory
- All Implemented Interfaces:
AdDisplayContainerFactory
The Default implementation of
AdDisplayContainerFactory-
Constructor Summary
ConstructorsConstructorDescriptionDefaultAdDisplayContainerFactory(android.view.ViewGroup viewGroup) Creates an instance ofAdDisplayContainerFactory, where the ViewGroup provided as the constructor parameter will be used for theAdDisplayContainercreation. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.ads.interactivemedia.v3.api.AdDisplayContainercreateAdDisplayContainer(GoogleIMAVideoAdPlayer googleIMAVideoAdPlayer) Creates theAdDisplayContainerwith the providedGoogleIMAVideoAdPlayerand the ViewGroup retrieved withAdDisplayContainerFactory.getViewContainer()android.view.ViewGroupReturns theViewGroupcontainer used for both, the creation of theGoogleIMAVideoAdPlayerand 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 theAdDisplayContainercreation.- Parameters:
viewGroup- the ad view container
-
-
Method Details
-
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
-