public static class RelatedConfig.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Builder(android.content.res.TypedArray a) |
Modifier and Type | Method and Description |
---|---|
RelatedConfig.Builder |
autoPlayMessage(java.lang.String message) |
RelatedConfig.Builder |
autoPlayTimer(java.lang.Integer timer) |
RelatedConfig |
build() |
RelatedConfig.Builder |
displayMode(java.lang.String displayMode) |
RelatedConfig.Builder |
file(java.lang.String file) |
RelatedConfig.Builder |
onClick(java.lang.String onClick) |
RelatedConfig.Builder |
onComplete(java.lang.String onComplete) |
public Builder()
public Builder(android.content.res.TypedArray a)
public RelatedConfig.Builder file(java.lang.String file)
file
- (Required) Location of an RSS or JSON file containing a feed of related videos.public RelatedConfig.Builder displayMode(java.lang.String displayMode)
displayMode
- Configure the recommendations user interface. Does not apply to manual playlists. Must be one of the RELATED_DISPLAY_MODE_ constants.public RelatedConfig.Builder onComplete(java.lang.String onComplete)
onComplete
- The behavior of our related videos overlay when a single video or playlist is completed. Must be one of the RELATED_DISPLAY_ON_COMPLETE_ constants.public RelatedConfig.Builder onClick(java.lang.String onClick)
onClick
- The behavior when a related video is selected. Must be one of the RELATED_DISPLAY_ON_CLICK_ constants.public RelatedConfig.Builder autoPlayTimer(java.lang.Integer timer)
timer
- The number of seconds to wait before playing the next related video in your content list. Set to 0 to have your next related content to play immediately.public RelatedConfig.Builder autoPlayMessage(java.lang.String message)
message
- A custom message that appears during autoplay.public RelatedConfig build()