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 SummaryNested Classes Modifier and Type Class Description static interfaceCaptionStyleCompat.EdgeTypeDeprecated.The type of edge, which may be none.
 - 
Field SummaryFields Modifier and Type Field Description intbackgroundColorDeprecated.The preferred background color.static CaptionStyleCompatDEFAULTDeprecated.Default caption style.static intEDGE_TYPE_DEPRESSEDDeprecated.Edge type value specifying depressed bevel character edges.static intEDGE_TYPE_DROP_SHADOWDeprecated.Edge type value specifying drop-shadowed character edges.static intEDGE_TYPE_NONEDeprecated.Edge type value specifying no character edges.static intEDGE_TYPE_OUTLINEDeprecated.Edge type value specifying uniformly outlined character edges.static intEDGE_TYPE_RAISEDDeprecated.Edge type value specifying raised bevel character edges.intedgeColorDeprecated.The preferred edge color, if using an edge type other thanEDGE_TYPE_NONE.@com.google.android.exoplayer2.ui.CaptionStyleCompat.EdgeType intedgeTypeDeprecated.The preferred edge type.intforegroundColorDeprecated.The preferred foreground color.TypefacetypefaceDeprecated.The preferred typeface, ornullif unspecified.static intUSE_TRACK_COLOR_SETTINGSDeprecated.Use color setting specified by the track and fallback to default caption style.intwindowColorDeprecated.The preferred window color.
 - 
Constructor SummaryConstructors Constructor Description CaptionStyleCompat(int foregroundColor, int backgroundColor, int windowColor, @com.google.android.exoplayer2.ui.CaptionStyleCompat.EdgeType int edgeType, int edgeColor, Typeface typeface)Deprecated.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CaptionStyleCompatcreateFromCaptionStyle(CaptioningManager.CaptionStyle captionStyle)Deprecated.Creates aCaptionStyleCompatequivalent to a providedCaptioningManager.CaptionStyle.
 
- 
- 
- 
Field Detail- 
EDGE_TYPE_NONEpublic static final int EDGE_TYPE_NONE Deprecated.Edge type value specifying no character edges.- See Also:
- Constant Field Values
 
 - 
EDGE_TYPE_OUTLINEpublic static final int EDGE_TYPE_OUTLINE Deprecated.Edge type value specifying uniformly outlined character edges.- See Also:
- Constant Field Values
 
 - 
EDGE_TYPE_DROP_SHADOWpublic static final int EDGE_TYPE_DROP_SHADOW Deprecated.Edge type value specifying drop-shadowed character edges.- See Also:
- Constant Field Values
 
 - 
EDGE_TYPE_RAISEDpublic static final int EDGE_TYPE_RAISED Deprecated.Edge type value specifying raised bevel character edges.- See Also:
- Constant Field Values
 
 - 
EDGE_TYPE_DEPRESSEDpublic static final int EDGE_TYPE_DEPRESSED Deprecated.Edge type value specifying depressed bevel character edges.- See Also:
- Constant Field Values
 
 - 
USE_TRACK_COLOR_SETTINGSpublic 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
 
 - 
DEFAULTpublic static final CaptionStyleCompat DEFAULT Deprecated.Default caption style.
 - 
foregroundColorpublic final int foregroundColor Deprecated.The preferred foreground color.
 - 
backgroundColorpublic final int backgroundColor Deprecated.The preferred background color.
 - 
windowColorpublic final int windowColor Deprecated.The preferred window color.
 - 
edgeTypepublic final @com.google.android.exoplayer2.ui.CaptionStyleCompat.EdgeType int edgeType Deprecated.The preferred edge type. One of:
 - 
edgeColorpublic 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, ornullif unspecified.
 
- 
 - 
Constructor Detail- 
CaptionStyleCompatpublic CaptionStyleCompat(int foregroundColor, int backgroundColor, int windowColor, @com.google.android.exoplayer2.ui.CaptionStyleCompat.EdgeType int edgeType, int edgeColor, @Nullable Typeface typeface)Deprecated.- Parameters:
- foregroundColor- See- foregroundColor.
- backgroundColor- See- backgroundColor.
- windowColor- See- windowColor.
- edgeType- See- edgeType.
- edgeColor- See- edgeColor.
- typeface- See- typeface.
 
 
- 
 - 
Method Detail- 
createFromCaptionStyle@RequiresApi(19) public static CaptionStyleCompat createFromCaptionStyle(CaptioningManager.CaptionStyle captionStyle) Deprecated.Creates aCaptionStyleCompatequivalent to a providedCaptioningManager.CaptionStyle.- Parameters:
- captionStyle- A- CaptioningManager.CaptionStyle.
- Returns:
- The equivalent CaptionStyleCompat.
 
 
- 
 
-