public static class GoogleIMAComponent.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder(BaseVideoView baseVideoView,
EventEmitter eventEmitter)
The Builder constructor
|
Modifier and Type | Method and Description |
---|---|
GoogleIMAComponent |
build()
Builds the
GoogleIMAComponent instance |
GoogleIMAComponent.Builder |
setAdDisplayContainerFactory(AdDisplayContainerFactory adDisplayContainerFactory)
Sets a custom
AdDisplayContainerFactory
The Builder sets DefaultAdDisplayContainerFactory by default, with the BaseVideoView as the ViewGroup container |
GoogleIMAComponent.Builder |
setAdsRenderingSettings(com.google.ads.interactivemedia.v3.api.AdsRenderingSettings adsRenderingSettings)
Sets a custom Google IMA
AdsRenderingSettings and validates a List of mime types (if provided by the user)
The builder sets ImaSdkFactory.createAdsRenderingSettings() by default, without extra configurations. |
GoogleIMAComponent.Builder |
setDebugMode(boolean isDebugMode)
Sets debug mode on the GoogleIMAComponent's ImaSdkSettings object.
|
GoogleIMAComponent.Builder |
setImaSdkSettings(com.google.ads.interactivemedia.v3.api.ImaSdkSettings imaSdkSettings)
Sets a custom Google IMA
ImaSdkSettings object. |
GoogleIMAComponent.Builder |
setLoadVideoTimeout(int adLoadTimeoutMillis)
Sets the ad video load timeout, in milliseconds.
|
GoogleIMAComponent.Builder |
setMimeTypes(java.util.List<java.lang.String> mimeTypes)
Sets and validates a List of mime types provided by the user.
|
GoogleIMAComponent.Builder |
setUseAdRules(boolean useAdRules)
Specifies whether this component will be using Ad Rules or not
The Builder sets Ad Rules to false by default
|
public Builder(@NonNull BaseVideoView baseVideoView, @NonNull EventEmitter eventEmitter)
public GoogleIMAComponent.Builder setImaSdkSettings(@Nullable com.google.ads.interactivemedia.v3.api.ImaSdkSettings imaSdkSettings)
ImaSdkSettings
object.
The builder sets ImaSdkFactory.createImaSdkSettings()
by default, without extra configurations.public GoogleIMAComponent.Builder setDebugMode(boolean isDebugMode)
ImaSdkSettings.setDebugMode(boolean)
method, which can also be accessed when creating a custom
ImaSdkSettings object.public GoogleIMAComponent.Builder setLoadVideoTimeout(int adLoadTimeoutMillis)
AdsRenderingSettings.setLoadVideoTimeout(int)
method, which can also be accessed when creating a custom
AdsRenderingSettings object.public GoogleIMAComponent.Builder setAdsRenderingSettings(@Nullable com.google.ads.interactivemedia.v3.api.AdsRenderingSettings adsRenderingSettings)
AdsRenderingSettings
and validates a List of mime types (if provided by the user)
The builder sets ImaSdkFactory.createAdsRenderingSettings()
by default, without extra configurations.public GoogleIMAComponent.Builder setMimeTypes(@Nullable java.util.List<java.lang.String> mimeTypes)
AdsRenderingSettings.setMimeTypes(List)
method, which can also be accessed when creating a custom
AdsRenderingSettings object.public GoogleIMAComponent.Builder setUseAdRules(boolean useAdRules)
public GoogleIMAComponent.Builder setAdDisplayContainerFactory(@Nullable AdDisplayContainerFactory adDisplayContainerFactory)
AdDisplayContainerFactory
The Builder sets DefaultAdDisplayContainerFactory
by default, with the BaseVideoView
as the ViewGroup
containerpublic GoogleIMAComponent build()
GoogleIMAComponent
instance