Class CaptionsConfig.Builder

  • Enclosing class:
    CaptionsConfig

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

      • Builder

        public Builder()
      • Builder

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

      • color

        public CaptionsConfig.Builder color​(java.lang.String captionsColor)
        Parameters:
        captionsColor - Hex color of the captions text.
      • fontSize

        public CaptionsConfig.Builder fontSize​(java.lang.Integer fontSize)
        Parameters:
        fontSize - Size of the captions text (Will not affect text size when rendering captions via browser).
      • fontOpacity

        public CaptionsConfig.Builder fontOpacity​(java.lang.Integer fontOpacity)
        Parameters:
        fontOpacity - Alpha percentage of the captions text.
      • backgroundColor

        public CaptionsConfig.Builder backgroundColor​(java.lang.String backgroundColor)
        Parameters:
        backgroundColor - Hex color of the caption characters background.
      • backgroundOpacity

        public CaptionsConfig.Builder backgroundOpacity​(java.lang.Integer backgroundOpacity)
        Parameters:
        backgroundOpacity - Alpha percentage of the caption characters background.
      • edgeStyle

        public CaptionsConfig.Builder edgeStyle​(java.lang.String edgeStyle)
        Parameters:
        edgeStyle - Method by which the captions characters are separated from their background, must be one of the CAPTION_EDGE_STYLE_ constants.
      • windowColor

        public CaptionsConfig.Builder windowColor​(java.lang.String windowColor)
        Parameters:
        windowColor - Hex color of the background of the entire captions area.
      • windowOpacity

        public CaptionsConfig.Builder windowOpacity​(java.lang.Integer windowOpacity)
        Parameters:
        windowOpacity - Alpha percentage of the background of the entire captions area.