java.lang.Object | |
↳ | android.view.accessibility.CaptioningManager |
Contains methods for accessing and monitoring preferred video captioning state and visual properties.
To obtain a handle to the captioning manager, do the following:
CaptioningManager captioningManager =
(CaptioningManager) context.getSystemService(Context.CAPTIONING_SERVICE);
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CaptioningManager.CaptionStyle | Specifies visual properties for video captions, including foreground and background colors, edge properties, and typeface. | ||||||||||
CaptioningManager.CaptioningChangeListener | Listener for changes in captioning properties, including enabled state and user style preferences. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a listener for changes in the user's preferred captioning enabled
state and visual properties.
| |||||||||||
Removes a listener previously added using
addCaptioningChangeListener(CaptioningManager.CaptioningChangeListener) . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Adds a listener for changes in the user's preferred captioning enabled state and visual properties.
listener | the listener to add |
---|
CaptioningManager.CaptionStyle
, or the default style if not specified
Removes a listener previously added using
addCaptioningChangeListener(CaptioningManager.CaptioningChangeListener)
.
listener | the listener to remove |
---|