Class RelatedConfig.Builder

  • Enclosing class:
    RelatedConfig

    public static class RelatedConfig.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
      • Builder

        public Builder​(android.content.res.TypedArray a)
    • Method Detail

      • file

        public RelatedConfig.Builder file​(java.lang.String file)
        Parameters:
        file - (Required) Location of an RSS or JSON file containing a feed of related videos.
      • displayMode

        public RelatedConfig.Builder displayMode​(java.lang.String displayMode)
        Parameters:
        displayMode - Configure the recommendations user interface. Does not apply to manual playlists. Must be one of the RELATED_DISPLAY_MODE_ constants.
      • onComplete

        public RelatedConfig.Builder onComplete​(java.lang.String onComplete)
        Parameters:
        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.
      • onClick

        public RelatedConfig.Builder onClick​(java.lang.String onClick)
        Parameters:
        onClick - The behavior when a related video is selected. Must be one of the RELATED_DISPLAY_ON_CLICK_ constants.
      • autoPlayTimer

        public RelatedConfig.Builder autoPlayTimer​(java.lang.Integer timer)
        Parameters:
        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.
      • autoPlayMessage

        public RelatedConfig.Builder autoPlayMessage​(java.lang.String message)
        Parameters:
        message - A custom message that appears during autoplay.