public class DefaultAdDisplayContainerFactory extends java.lang.Object implements AdDisplayContainerFactory
AdDisplayContainerFactory| Constructor and Description |
|---|
DefaultAdDisplayContainerFactory(android.view.ViewGroup viewGroup)
Creates an instance of
AdDisplayContainerFactory, where the ViewGroup provided as
the constructor parameter will be used for the AdDisplayContainercreation. |
| Modifier and Type | Method and Description |
|---|---|
com.google.ads.interactivemedia.v3.api.AdDisplayContainer |
createAdDisplayContainer(GoogleIMAVideoAdPlayer googleIMAVideoAdPlayer)
Creates the
AdDisplayContainer with the provided GoogleIMAVideoAdPlayer
and the ViewGroup retrieved with AdDisplayContainerFactory.getViewContainer() |
android.view.ViewGroup |
getViewContainer()
Returns the
ViewGroup container used for both,
the creation of the GoogleIMAVideoAdPlayer and the AdDisplayContainer |
public DefaultAdDisplayContainerFactory(@NonNull
android.view.ViewGroup viewGroup)
Creates an instance of AdDisplayContainerFactory, where the ViewGroup provided as
the constructor parameter will be used for the AdDisplayContainercreation.
viewGroup - the ad view containerpublic com.google.ads.interactivemedia.v3.api.AdDisplayContainer createAdDisplayContainer(GoogleIMAVideoAdPlayer googleIMAVideoAdPlayer)
AdDisplayContainerFactory
Creates the AdDisplayContainer with the provided GoogleIMAVideoAdPlayer
and the ViewGroup retrieved with AdDisplayContainerFactory.getViewContainer()
createAdDisplayContainer in interface AdDisplayContainerFactorygoogleIMAVideoAdPlayer - the Brightcove Ad Player for Google IMApublic android.view.ViewGroup getViewContainer()
AdDisplayContainerFactory
Returns the ViewGroup container used for both,
the creation of the GoogleIMAVideoAdPlayer and the AdDisplayContainer
getViewContainer in interface AdDisplayContainerFactory