-
public class GoogleDAIComponent.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private ImaSdkSettings
imaSdkSettings
private AdsRenderingSettings
adsRenderingSettings
private Map<String, String>
adTagParameters
-
Constructor Summary
Constructors Constructor Description GoogleDAIComponent.Builder(BaseVideoView baseVideoView, EventEmitter eventEmitter)
The Builder constructor
-
Method Summary
Modifier and Type Method Description GoogleDAIComponent.Builder
setImaSdkSettings(@Nullable() ImaSdkSettings imaSdkSettings)
Sets a custom Google IMA ImaSdkSettings object. GoogleDAIComponent.Builder
setAdsRenderingSettings(@Nullable() AdsRenderingSettings adsRenderingSettings)
Sets a custom Google IMA AdsRenderingSettings and validates a List of mime types (if provided by the user)The builder sets createAdsRenderingSettings by default, without extra configurations. GoogleDAIComponent.Builder
setAdTagParameters(Map<String, String> adTagParameters)
Set the tag parameters to be passed to the Stream Request GoogleDAIComponent.Builder
setDebugMode(boolean isDebugMode)
Sets debug mode on the GoogleIMAComponent's ImaSdkSettings object. GoogleDAIComponent.Builder
setLoadVideoTimeout(int adLoadTimeoutMillis)
Sets the ad video load timeout, in milliseconds. GoogleDAIComponent.Builder
setMimeTypes(@Nullable() List<String> mimeTypes)
Sets and validates a List of mime types provided by the user. GoogleDAIComponent.Builder
setStreamDisplayContainerFactory(@Nullable() AdDisplayContainerFactory adDisplayContainerFactory)
Sets a custom AdDisplayContainerFactory The Builder sets DefaultAdDisplayContainerFactory by default, with the BaseVideoView as the android.view.ViewGroup container GoogleDAIComponent
build()
Builds the GoogleIMAComponent instance -
-
Method Detail
-
setImaSdkSettings
GoogleDAIComponent.Builder setImaSdkSettings(@Nullable() ImaSdkSettings imaSdkSettings)
Sets a custom Google IMA ImaSdkSettings object.The builder sets createImaSdkSettings by default, without extra configurations.
-
setAdsRenderingSettings
GoogleDAIComponent.Builder setAdsRenderingSettings(@Nullable() AdsRenderingSettings adsRenderingSettings)
Sets a custom Google IMA AdsRenderingSettings and validates a List of mime types (if provided by the user)The builder sets createAdsRenderingSettings by default, without extra configurations.
-
setAdTagParameters
GoogleDAIComponent.Builder setAdTagParameters(Map<String, String> adTagParameters)
Set the tag parameters to be passed to the Stream Request
- Parameters:
adTagParameters
- - The parameters to be set
-
setDebugMode
GoogleDAIComponent.Builder setDebugMode(boolean isDebugMode)
Sets debug mode on the GoogleIMAComponent's ImaSdkSettings object. This is a convenience method for access tothe setDebugMode method, which can also be accessed when creating a customImaSdkSettings object.
-
setLoadVideoTimeout
GoogleDAIComponent.Builder setLoadVideoTimeout(int adLoadTimeoutMillis)
Sets the ad video load timeout, in milliseconds. This is a convenience method for access to the setLoadVideoTimeout method, which can also be accessed when creating a customAdsRenderingSettings object.
-
setMimeTypes
GoogleDAIComponent.Builder setMimeTypes(@Nullable() List<String> mimeTypes)
Sets and validates a List of mime types provided by the user. This is a convenience method for access tothe setMimeTypes method, which can also be accessed when creating a customAdsRenderingSettings object.
-
setStreamDisplayContainerFactory
GoogleDAIComponent.Builder setStreamDisplayContainerFactory(@Nullable() AdDisplayContainerFactory adDisplayContainerFactory)
Sets a custom AdDisplayContainerFactory The Builder sets DefaultAdDisplayContainerFactory by default, with the BaseVideoView as the android.view.ViewGroup container
-
build
GoogleDAIComponent build()
Builds the GoogleIMAComponent instance
-
-
-
-