public final class CaptionStyleCompat
extends java.lang.Object
CaptioningManager.CaptionStyle
.Modifier and Type | Class and Description |
---|---|
static interface |
CaptionStyleCompat.EdgeType
The type of edge, which may be none.
|
Modifier and Type | Field and 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.
|
android.graphics.Typeface |
typeface
The preferred typeface.
|
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 and Description |
---|
CaptionStyleCompat(int foregroundColor,
int backgroundColor,
int windowColor,
int edgeType,
int edgeColor,
android.graphics.Typeface typeface) |
Modifier and Type | Method and Description |
---|---|
static CaptionStyleCompat |
createFromCaptionStyle(android.view.accessibility.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
public final int edgeType
public final int edgeColor
EDGE_TYPE_NONE
.public final android.graphics.Typeface typeface
public CaptionStyleCompat(int foregroundColor, int backgroundColor, int windowColor, int edgeType, int edgeColor, android.graphics.Typeface typeface)
foregroundColor
- See foregroundColor
.backgroundColor
- See backgroundColor
.windowColor
- See windowColor
.edgeType
- See edgeType
.edgeColor
- See edgeColor
.typeface
- See typeface
.public static CaptionStyleCompat createFromCaptionStyle(android.view.accessibility.CaptioningManager.CaptionStyle captionStyle)
CaptionStyleCompat
equivalent to a provided CaptioningManager.CaptionStyle
.captionStyle
- A CaptioningManager.CaptionStyle
.CaptionStyleCompat
.