Package com.google.android.exoplayer2.ui
Class CaptionStyleCompat
- java.lang.Object
-
- com.google.android.exoplayer2.ui.CaptionStyleCompat
-
@Deprecated public final class CaptionStyleCompat extends Object
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.A compatibility wrapper forCaptioningManager.CaptionStyle
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CaptionStyleCompat.EdgeType
Deprecated.The type of edge, which may be none.
-
Field Summary
Fields Modifier and Type Field Description int
backgroundColor
Deprecated.The preferred background color.static CaptionStyleCompat
DEFAULT
Deprecated.Default caption style.static int
EDGE_TYPE_DEPRESSED
Deprecated.Edge type value specifying depressed bevel character edges.static int
EDGE_TYPE_DROP_SHADOW
Deprecated.Edge type value specifying drop-shadowed character edges.static int
EDGE_TYPE_NONE
Deprecated.Edge type value specifying no character edges.static int
EDGE_TYPE_OUTLINE
Deprecated.Edge type value specifying uniformly outlined character edges.static int
EDGE_TYPE_RAISED
Deprecated.Edge type value specifying raised bevel character edges.int
edgeColor
Deprecated.The preferred edge color, if using an edge type other thanEDGE_TYPE_NONE
.@com.google.android.exoplayer2.ui.CaptionStyleCompat.EdgeType int
edgeType
Deprecated.The preferred edge type.int
foregroundColor
Deprecated.The preferred foreground color.Typeface
typeface
Deprecated.The preferred typeface, ornull
if unspecified.static int
USE_TRACK_COLOR_SETTINGS
Deprecated.Use color setting specified by the track and fallback to default caption style.int
windowColor
Deprecated.The preferred window color.
-
Constructor Summary
Constructors Constructor Description CaptionStyleCompat(int foregroundColor, int backgroundColor, int windowColor, @com.google.android.exoplayer2.ui.CaptionStyleCompat.EdgeType int edgeType, int edgeColor, Typeface typeface)
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CaptionStyleCompat
createFromCaptionStyle(CaptioningManager.CaptionStyle captionStyle)
Deprecated.Creates aCaptionStyleCompat
equivalent to a providedCaptioningManager.CaptionStyle
.
-
-
-
Field Detail
-
EDGE_TYPE_NONE
public static final int EDGE_TYPE_NONE
Deprecated.Edge type value specifying no character edges.- See Also:
- Constant Field Values
-
EDGE_TYPE_OUTLINE
public static final int EDGE_TYPE_OUTLINE
Deprecated.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
Deprecated.Edge type value specifying drop-shadowed character edges.- See Also:
- Constant Field Values
-
EDGE_TYPE_RAISED
public static final int EDGE_TYPE_RAISED
Deprecated.Edge type value specifying raised bevel character edges.- See Also:
- Constant Field Values
-
EDGE_TYPE_DEPRESSED
public static final int EDGE_TYPE_DEPRESSED
Deprecated.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
Deprecated.Use color setting specified by the track and fallback to default caption style.- See Also:
- Constant Field Values
-
DEFAULT
public static final CaptionStyleCompat DEFAULT
Deprecated.Default caption style.
-
foregroundColor
public final int foregroundColor
Deprecated.The preferred foreground color.
-
backgroundColor
public final int backgroundColor
Deprecated.The preferred background color.
-
windowColor
public final int windowColor
Deprecated.The preferred window color.
-
edgeType
public final @com.google.android.exoplayer2.ui.CaptionStyleCompat.EdgeType int edgeType
Deprecated.The preferred edge type. One of:
-
edgeColor
public final int edgeColor
Deprecated.The preferred edge color, if using an edge type other thanEDGE_TYPE_NONE
.
-
typeface
@Nullable public final Typeface typeface
Deprecated.The preferred typeface, ornull
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)
Deprecated.- Parameters:
foregroundColor
- SeeforegroundColor
.backgroundColor
- SeebackgroundColor
.windowColor
- SeewindowColor
.edgeType
- SeeedgeType
.edgeColor
- SeeedgeColor
.typeface
- Seetypeface
.
-
-
Method Detail
-
createFromCaptionStyle
@RequiresApi(19) public static CaptionStyleCompat createFromCaptionStyle(CaptioningManager.CaptionStyle captionStyle)
Deprecated.Creates aCaptionStyleCompat
equivalent to a providedCaptioningManager.CaptionStyle
.- Parameters:
captionStyle
- ACaptioningManager.CaptionStyle
.- Returns:
- The equivalent
CaptionStyleCompat
.
-
-