Package com.brightcove.cast.model
Class BrightcoveCastCustomData.Builder
java.lang.Object
com.brightcove.cast.model.BrightcoveCastCustomData.Builder
- Enclosing class:
- BrightcoveCastCustomData
-
Constructor Summary
ConstructorDescriptionBuilder
(android.content.Context context) Default constructorBuilder
(BrightcoveCastCustomData brightcoveCastCustomData) Creates a Builder object initialized with the values of thecustomData
parameter. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
setAccountId
(String accountId) Sets the brightcove account idsetAdConfigId
(String adConfigId) Sets the Brightcove AdConfigId value.setApplicationId
(String applicationId) The application identifier for analytics.setBrightcoveAuthorizationToken
(String brightcoveAuthorizationToken) Sets the Brightcove authorization token.setEmeHeaders
(Map<String, String> emeHeaders) Sets the emeHeaders object to be set in the CustomData object.setPlayerUrl
(String playerUrl) Sets the player URL for a custom receiver app.setPolicyKey
(String policyKey) Sets the player policy key.setSelectedTextAndAudioLanguages
(Map<String, String> selectedTextAndAudioLanguages) Sets the selected text and audio languages (or null, if they are not provided).The user id to be used when sending custom data to the Cast Receiver app.setWatermarkingToken
(String watermarkingToken) Sets the watermarking token to be set in the CatalogParams object.
-
Constructor Details
-
Builder
public Builder(@NonNull android.content.Context context) Default constructor -
Builder
Creates a Builder object initialized with the values of thecustomData
parameter.- Parameters:
brightcoveCastCustomData
- values to initialize the object.
-
-
Method Details
-
setAccountId
Sets the brightcove account id- Returns:
- this builder instance.
-
setPolicyKey
Sets the player policy key.- Returns:
- this builder instance.
-
setUserId
The user id to be used when sending custom data to the Cast Receiver app. The receiver app will use this user id for Analytic's events. Settings.Secure.ANDROID_ID is used as the default value.- Parameters:
userId
- the analytics user id.- Returns:
- this builder instance.
-
setApplicationId
The application identifier for analytics.- Parameters:
applicationId
- the application id- Returns:
- this builder instance.
-
setBrightcoveAuthorizationToken
public BrightcoveCastCustomData.Builder setBrightcoveAuthorizationToken(@Nullable String brightcoveAuthorizationToken) Sets the Brightcove authorization token. Depending on your VideoCloud account configuration, this token might be required in order to successfully make certain requests.- Parameters:
brightcoveAuthorizationToken
- the Brightcove authorization token- Returns:
- the builder instance
-
setAdConfigId
Sets the Brightcove AdConfigId value. Depending on the type of content that you wish to cast, the AdConfigId could be required in order to successfully make certain requests.- Parameters:
adConfigId
- the Brightcove adConfigId- Returns:
- the builder instance
-
setSelectedTextAndAudioLanguages
public BrightcoveCastCustomData.Builder setSelectedTextAndAudioLanguages(@Nullable Map<String, String> selectedTextAndAudioLanguages) Sets the selected text and audio languages (or null, if they are not provided).- Parameters:
selectedTextAndAudioLanguages
- the Brightcove adConfigId- Returns:
- the builder instance
-
setPlayerUrl
Sets the player URL for a custom receiver app.- Parameters:
playerUrl
- the playerUrl for a custom receiver- Returns:
- the builder instance
-
setWatermarkingToken
Sets the watermarking token to be set in the CatalogParams object.- Parameters:
watermarkingToken
- the watermarking token- Returns:
- the builder instance
-
setEmeHeaders
Sets the emeHeaders object to be set in the CustomData object.- Parameters:
emeHeaders
- The Map of EmeHeaders- Returns:
- the builder instance
-
build
-