public static class BrightcoveCastCustomData.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder(BrightcoveCastCustomData brightcoveCastCustomData)
Creates a Builder object initialized with the values of the
customData parameter. |
Builder(android.content.Context context)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
BrightcoveCastCustomData |
build() |
BrightcoveCastCustomData.Builder |
setAccountId(java.lang.String accountId)
Sets the brightcove account id
|
BrightcoveCastCustomData.Builder |
setAdConfigId(java.lang.String adConfigId)
Sets the Brightcove AdConfigId value.
|
BrightcoveCastCustomData.Builder |
setApplicationId(java.lang.String applicationId)
The application identifier for analytics.
|
BrightcoveCastCustomData.Builder |
setBrightcoveAuthorizationToken(java.lang.String brightcoveAuthorizationToken)
Sets the Brightcove authorization token.
|
BrightcoveCastCustomData.Builder |
setPlayerUrl(java.lang.String playerUrl)
Sets the player URL for a custom receiver app.
|
BrightcoveCastCustomData.Builder |
setPolicyKey(java.lang.String policyKey)
Sets the player policy key.
|
BrightcoveCastCustomData.Builder |
setSelectedTextAndAudioLanguages(java.util.Map<java.lang.String,java.lang.String> selectedTextAndAudioLanguages)
Sets the selected text and audio languages (or null, if they are not provided).
|
BrightcoveCastCustomData.Builder |
setUserId(java.lang.String userId)
The user id to be used when sending custom data to the Cast Receiver app.
|
BrightcoveCastCustomData.Builder |
setWatermarkingToken(java.lang.String watermarkingToken)
Sets the watermarking token to be set in the CatalogParams object.
|
public Builder(@NonNull android.content.Context context)
public Builder(BrightcoveCastCustomData brightcoveCastCustomData)
customData
parameter.brightcoveCastCustomData
- values to initialize the object.public BrightcoveCastCustomData.Builder setAccountId(@Nullable java.lang.String accountId)
public BrightcoveCastCustomData.Builder setPolicyKey(@Nullable java.lang.String policyKey)
public BrightcoveCastCustomData.Builder setUserId(@Nullable java.lang.String userId)
userId
- the analytics user id.public BrightcoveCastCustomData.Builder setApplicationId(@Nullable java.lang.String applicationId)
applicationId
- the application idpublic BrightcoveCastCustomData.Builder setBrightcoveAuthorizationToken(@Nullable java.lang.String brightcoveAuthorizationToken)
brightcoveAuthorizationToken
- the Brightcove authorization tokenpublic BrightcoveCastCustomData.Builder setAdConfigId(@Nullable java.lang.String adConfigId)
adConfigId
- the Brightcove adConfigIdpublic BrightcoveCastCustomData.Builder setSelectedTextAndAudioLanguages(@Nullable java.util.Map<java.lang.String,java.lang.String> selectedTextAndAudioLanguages)
selectedTextAndAudioLanguages
- the Brightcove adConfigIdpublic BrightcoveCastCustomData.Builder setPlayerUrl(@Nullable java.lang.String playerUrl)
playerUrl
- the playerUrl for a custom receiverpublic BrightcoveCastCustomData.Builder setWatermarkingToken(@Nullable java.lang.String watermarkingToken)
watermarkingToken
- the watermarking tokenpublic BrightcoveCastCustomData build()