Class CaptionStyleCompat

    • Field Detail

      • EDGE_TYPE_NONE

        public static final int EDGE_TYPE_NONE
        Edge type value specifying no character edges.
        See Also:
        Constant Field Values
      • EDGE_TYPE_OUTLINE

        public static final int EDGE_TYPE_OUTLINE
        Edge type value specifying uniformly outlined character edges.
        See Also:
        Constant Field Values
      • EDGE_TYPE_DROP_SHADOW

        public static final int EDGE_TYPE_DROP_SHADOW
        Edge type value specifying drop-shadowed character edges.
        See Also:
        Constant Field Values
      • EDGE_TYPE_RAISED

        public static final int EDGE_TYPE_RAISED
        Edge type value specifying raised bevel character edges.
        See Also:
        Constant Field Values
      • EDGE_TYPE_DEPRESSED

        public static final int EDGE_TYPE_DEPRESSED
        Edge type value specifying depressed bevel character edges.
        See Also:
        Constant Field Values
      • USE_TRACK_COLOR_SETTINGS

        public static final int USE_TRACK_COLOR_SETTINGS
        Use color setting specified by the track and fallback to default caption style.
        See Also:
        Constant Field Values
      • foregroundColor

        public final int foregroundColor
        The preferred foreground color.
      • backgroundColor

        public final int backgroundColor
        The preferred background color.
      • windowColor

        public final int windowColor
        The preferred window color.
      • edgeColor

        public final int edgeColor
        The preferred edge color, if using an edge type other than EDGE_TYPE_NONE.
      • typeface

        @Nullable
        public final Typeface typeface
        The preferred typeface, or null if unspecified.
    • Constructor Detail

      • CaptionStyleCompat

        public CaptionStyleCompat​(int foregroundColor,
                                  int backgroundColor,
                                  int windowColor,
                                  @com.google.android.exoplayer2.ui.CaptionStyleCompat.EdgeType int edgeType,
                                  int edgeColor,
                                  @Nullable
                                  Typeface typeface)
        Parameters:
        foregroundColor - See foregroundColor.
        backgroundColor - See backgroundColor.
        windowColor - See windowColor.
        edgeType - See edgeType.
        edgeColor - See edgeColor.
        typeface - See typeface.