CaptionStyle
class CaptionStyle
kotlin.Any | |
↳ | android.view.accessibility.CaptioningManager.CaptionStyle |
Specifies visual properties for video captions, including foreground and background colors, edge properties, and typeface.
Summary
Constants | |
---|---|
static Int |
Edge type value specifying depressed bevel character edges. |
static Int |
Edge type value specifying drop-shadowed character edges. |
static Int |
Edge type value specifying no character edges. |
static Int |
Edge type value specifying uniformly outlined character edges. |
static Int |
Edge type value specifying raised bevel character edges. |
static Int |
Unspecified edge type value. |
Public methods | |
---|---|
Typeface? | |
Boolean | |
Boolean | |
Boolean | |
Boolean | |
Boolean |
Properties | |
---|---|
Int |
The preferred background color for video captions. |
Int |
The preferred edge color for video captions, if using an edge type other than |
Int |
The preferred edge type for video captions, one of: |
Int |
The preferred foreground color for video captions. |
Int |
The preferred window color for video captions. |
Constants
EDGE_TYPE_DEPRESSED
static val EDGE_TYPE_DEPRESSED: Int
Edge type value specifying depressed bevel character edges.
Value: 4
EDGE_TYPE_DROP_SHADOW
static val EDGE_TYPE_DROP_SHADOW: Int
Edge type value specifying drop-shadowed character edges.
Value: 2
EDGE_TYPE_NONE
static val EDGE_TYPE_NONE: Int
Edge type value specifying no character edges.
Value: 0
EDGE_TYPE_OUTLINE
static val EDGE_TYPE_OUTLINE: Int
Edge type value specifying uniformly outlined character edges.
Value: 1
EDGE_TYPE_RAISED
static val EDGE_TYPE_RAISED: Int
Edge type value specifying raised bevel character edges.
Value: 3
EDGE_TYPE_UNSPECIFIED
static val EDGE_TYPE_UNSPECIFIED: Int
Unspecified edge type value.
Value: -1
Public methods
getTypeface
fun getTypeface(): Typeface?
Return | |
---|---|
Typeface? |
the preferred Typeface for video captions, or null if not specified |
hasBackgroundColor
fun hasBackgroundColor(): Boolean
Return | |
---|---|
Boolean |
true if the user has specified a background color that should override the application default, false otherwise |
hasEdgeColor
fun hasEdgeColor(): Boolean
Return | |
---|---|
Boolean |
true if the user has specified an edge color that should override the application default, false otherwise |
hasEdgeType
fun hasEdgeType(): Boolean
Return | |
---|---|
Boolean |
true if the user has specified an edge type that should override the application default, false otherwise |
hasForegroundColor
fun hasForegroundColor(): Boolean
Return | |
---|---|
Boolean |
true if the user has specified a foreground color that should override the application default, false otherwise |
hasWindowColor
fun hasWindowColor(): Boolean
Return | |
---|---|
Boolean |
true if the user has specified a window color that should override the application default, false otherwise |
Properties
backgroundColor
val backgroundColor: Int
The preferred background color for video captions.
edgeColor
val edgeColor: Int
The preferred edge color for video captions, if using an edge type other than EDGE_TYPE_NONE
.
edgeType
val edgeType: Int
The preferred edge type for video captions, one of:
foregroundColor
val foregroundColor: Int
The preferred foreground color for video captions.
windowColor
val windowColor: Int
The preferred window color for video captions.