Package com.brightcove.ima
Class GoogleIMAComponent.Builder
java.lang.Object
com.brightcove.ima.GoogleIMAComponent.Builder
- Enclosing class:
- GoogleIMAComponent
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(BaseVideoView baseVideoView, EventEmitter eventEmitter) The Builder constructor -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theGoogleIMAComponentinstancesetAdDisplayContainerFactory(AdDisplayContainerFactory adDisplayContainerFactory) Sets a customAdDisplayContainerFactoryThe Builder setsDefaultAdDisplayContainerFactoryby default, with theBaseVideoViewas theViewGroupcontainersetAdsRenderingSettings(com.google.ads.interactivemedia.v3.api.AdsRenderingSettings adsRenderingSettings) Sets a custom Google IMAAdsRenderingSettingsand validates a List of mime types (if provided by the user) The builder setsImaSdkFactory.createAdsRenderingSettings()by default, without extra configurations.setDebugMode(boolean isDebugMode) Sets debug mode on the GoogleIMAComponent's ImaSdkSettings object.setImaSdkSettings(com.google.ads.interactivemedia.v3.api.ImaSdkSettings imaSdkSettings) Sets a custom Google IMAImaSdkSettingsobject.setLoadVideoTimeout(int adLoadTimeoutMillis) Sets the ad video load timeout, in milliseconds.setMimeTypes(List<String> mimeTypes) Sets and validates a List of mime types provided by the user.setUseAdRules(boolean useAdRules) Specifies whether this component will be using Ad Rules or not The Builder sets Ad Rules to false by default
-
Constructor Details
-
Builder
The Builder constructor
-
-
Method Details
-
setImaSdkSettings
public GoogleIMAComponent.Builder setImaSdkSettings(@Nullable com.google.ads.interactivemedia.v3.api.ImaSdkSettings imaSdkSettings) Sets a custom Google IMAImaSdkSettingsobject. The builder setsImaSdkFactory.createImaSdkSettings()by default, without extra configurations.- Returns:
- this Builder
-
setDebugMode
Sets debug mode on the GoogleIMAComponent's ImaSdkSettings object. This is a convenience method for access to theImaSdkSettings.setDebugMode(boolean)method, which can also be accessed when creating a custom ImaSdkSettings object. -
setLoadVideoTimeout
Sets the ad video load timeout, in milliseconds. This is a convenience method for access to theAdsRenderingSettings.setLoadVideoTimeout(int)method, which can also be accessed when creating a custom AdsRenderingSettings object. -
setAdsRenderingSettings
public GoogleIMAComponent.Builder setAdsRenderingSettings(@Nullable com.google.ads.interactivemedia.v3.api.AdsRenderingSettings adsRenderingSettings) Sets a custom Google IMAAdsRenderingSettingsand validates a List of mime types (if provided by the user) The builder setsImaSdkFactory.createAdsRenderingSettings()by default, without extra configurations.- Returns:
- this Builder
-
setMimeTypes
Sets and validates a List of mime types provided by the user. This is a convenience method for access to theAdsRenderingSettings.setMimeTypes(List)method, which can also be accessed when creating a custom AdsRenderingSettings object.- Returns:
- this Builder
-
setUseAdRules
Specifies whether this component will be using Ad Rules or not The Builder sets Ad Rules to false by default- Returns:
- this Builder
-
setAdDisplayContainerFactory
public GoogleIMAComponent.Builder setAdDisplayContainerFactory(@Nullable AdDisplayContainerFactory adDisplayContainerFactory) Sets a customAdDisplayContainerFactoryThe Builder setsDefaultAdDisplayContainerFactoryby default, with theBaseVideoViewas theViewGroupcontainer- Returns:
- this Builder
-
build
Builds theGoogleIMAComponentinstance
-