Stay organized with collections
Save and categorize content based on your preferences.
CaptioningManager
open class CaptioningManager
Contains methods for accessing and monitoring preferred video captioning state and visual properties.
Summary
Nested classes |
|
Specifies visual properties for video captions, including foreground and background colors, edge properties, and typeface.
|
abstract |
Listener for changes in captioning properties, including enabled state and user style preferences.
|
Public methods
getFontScale
fun getFontScale(): Float
Return |
Float |
the user's preferred font scaling factor for video captions, or 1 if not specified |
getLocale
fun getLocale(): Locale?
Return |
Locale? |
the locale for the user's preferred captioning language, or null if not specified |
isCallCaptioningEnabled
open fun isCallCaptioningEnabled(): Boolean
Returns true if system wide call captioning is enabled for this device.
isEnabled
fun isEnabled(): Boolean
Return |
Boolean |
the user's preferred captioning enabled state |
isSystemAudioCaptioningEnabled
fun isSystemAudioCaptioningEnabled(): Boolean
Return |
Boolean |
the system audio caption enabled state. |
isSystemAudioCaptioningUiEnabled
fun isSystemAudioCaptioningUiEnabled(): Boolean
Return |
Boolean |
the system audio caption UI enabled state. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-04 UTC."],[],[]]