public final class CaptionStyleCompat extends Object
CaptioningManager.CaptionStyle.| Modifier and Type | Class | Description |
|---|---|---|
static interface |
CaptionStyleCompat.EdgeType |
The type of edge, which may be none.
|
| Modifier and Type | Field | Description |
|---|---|---|
int |
backgroundColor |
The preferred background color.
|
static CaptionStyleCompat |
DEFAULT |
Default caption style.
|
static int |
EDGE_TYPE_DEPRESSED |
Edge type value specifying depressed bevel character edges.
|
static int |
EDGE_TYPE_DROP_SHADOW |
Edge type value specifying drop-shadowed character edges.
|
static int |
EDGE_TYPE_NONE |
Edge type value specifying no character edges.
|
static int |
EDGE_TYPE_OUTLINE |
Edge type value specifying uniformly outlined character edges.
|
static int |
EDGE_TYPE_RAISED |
Edge type value specifying raised bevel character edges.
|
int |
edgeColor |
The preferred edge color, if using an edge type other than
EDGE_TYPE_NONE. |
int |
edgeType |
The preferred edge type.
|
int |
foregroundColor |
The preferred foreground color.
|
Typeface |
typeface |
The preferred typeface, or
null if unspecified. |
static int |
USE_TRACK_COLOR_SETTINGS |
Use color setting specified by the track and fallback to default caption style.
|
int |
windowColor |
The preferred window color.
|
| Constructor | Description |
|---|---|
CaptionStyleCompat(int foregroundColor,
int backgroundColor,
int windowColor,
int edgeType,
int edgeColor,
Typeface typeface) |
| Modifier and Type | Method | Description |
|---|---|---|
static CaptionStyleCompat |
createFromCaptionStyle(CaptioningManager.CaptionStyle captionStyle) |
Creates a
CaptionStyleCompat equivalent to a provided CaptioningManager.CaptionStyle. |
public static final int EDGE_TYPE_NONE
public static final int EDGE_TYPE_OUTLINE
public static final int EDGE_TYPE_DROP_SHADOW
public static final int EDGE_TYPE_RAISED
public static final int EDGE_TYPE_DEPRESSED
public static final int USE_TRACK_COLOR_SETTINGS
public static final CaptionStyleCompat DEFAULT
public final int foregroundColor
public final int backgroundColor
public final int windowColor
@EdgeType public final int edgeType
public final int edgeColor
EDGE_TYPE_NONE.@Nullable public final Typeface typeface
null if unspecified.public CaptionStyleCompat(int foregroundColor,
int backgroundColor,
int windowColor,
@EdgeType
int edgeType,
int edgeColor,
@Nullable
Typeface typeface)
foregroundColor - See foregroundColor.backgroundColor - See backgroundColor.windowColor - See windowColor.edgeType - See edgeType.edgeColor - See edgeColor.typeface - See typeface.public static CaptionStyleCompat createFromCaptionStyle(CaptioningManager.CaptionStyle captionStyle)
CaptionStyleCompat equivalent to a provided CaptioningManager.CaptionStyle.captionStyle - A CaptioningManager.CaptionStyle.CaptionStyleCompat.