-
public class GoogleIMAComponent.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private ImaSdkSettings
imaSdkSettings
private AdsRenderingSettings
adsRenderingSettings
private AdDisplayContainerFactory
adDisplayContainerFactory
private boolean
useAdRules
-
Constructor Summary
Constructors Constructor Description GoogleIMAComponent.Builder(BaseVideoView baseVideoView, EventEmitter eventEmitter)
The Builder constructor
-
Method Summary
Modifier and Type Method Description GoogleIMAComponent.Builder
setImaSdkSettings(@Nullable() ImaSdkSettings imaSdkSettings)
Sets a custom Google IMA ImaSdkSettings object. GoogleIMAComponent.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. GoogleIMAComponent.Builder
setAdDisplayContainerFactory(@Nullable() AdDisplayContainerFactory adDisplayContainerFactory)
Sets a custom AdDisplayContainerFactory The Builder sets DefaultAdDisplayContainerFactory by default, with the BaseVideoView as the android.view.ViewGroup container GoogleIMAComponent.Builder
setUseAdRules(boolean useAdRules)
Specifies whether this component will be using Ad Rules or notThe Builder sets Ad Rules to false by default GoogleIMAComponent.Builder
setDebugMode(boolean isDebugMode)
Sets debug mode on the GoogleIMAComponent's ImaSdkSettings object. GoogleIMAComponent.Builder
setLoadVideoTimeout(int adLoadTimeoutMillis)
Sets the ad video load timeout, in milliseconds. GoogleIMAComponent.Builder
setMimeTypes(@Nullable() List<String> mimeTypes)
Sets and validates a List of mime types provided by the user. GoogleIMAComponent
build()
Builds the GoogleIMAComponent instance -
-
Method Detail
-
setImaSdkSettings
GoogleIMAComponent.Builder setImaSdkSettings(@Nullable() ImaSdkSettings imaSdkSettings)
Sets a custom Google IMA ImaSdkSettings object.The builder sets createImaSdkSettings by default, without extra configurations.
-
setAdsRenderingSettings
GoogleIMAComponent.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.
-
setAdDisplayContainerFactory
GoogleIMAComponent.Builder setAdDisplayContainerFactory(@Nullable() AdDisplayContainerFactory adDisplayContainerFactory)
Sets a custom AdDisplayContainerFactory The Builder sets DefaultAdDisplayContainerFactory by default, with the BaseVideoView as the android.view.ViewGroup container
-
setUseAdRules
GoogleIMAComponent.Builder setUseAdRules(boolean useAdRules)
Specifies whether this component will be using Ad Rules or notThe Builder sets Ad Rules to false by default
-
setDebugMode
GoogleIMAComponent.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
GoogleIMAComponent.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
GoogleIMAComponent.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.
-
build
GoogleIMAComponent build()
Builds the GoogleIMAComponent instance
-
-
-
-