CaptioningChangeListener
abstract class CaptioningChangeListener
kotlin.Any | |
↳ | android.view.accessibility.CaptioningManager.CaptioningChangeListener |
Listener for changes in captioning properties, including enabled state and user style preferences.
Summary
Public constructors | |
---|---|
Public methods | |
---|---|
open Unit |
onEnabledChanged(enabled: Boolean) Called when the captioning enabled state changes. |
open Unit |
onFontScaleChanged(fontScale: Float) Called when the captioning font scaling factor changes. |
open Unit |
onLocaleChanged(locale: Locale?) Called when the captioning locale changes. |
open Unit |
onSystemAudioCaptioningChanged(enabled: Boolean) Called when the system audio caption enabled state changes. |
open Unit |
onSystemAudioCaptioningUiChanged(enabled: Boolean) Called when the system audio caption UI enabled state changes. |
open Unit |
onUserStyleChanged(userStyle: CaptioningManager.CaptionStyle) Called when the captioning user style changes. |
Public constructors
CaptioningChangeListener
CaptioningChangeListener()
Public methods
onEnabledChanged
open fun onEnabledChanged(enabled: Boolean): Unit
Called when the captioning enabled state changes.
Parameters | |
---|---|
enabled |
Boolean: the user's new preferred captioning enabled state |
onFontScaleChanged
open fun onFontScaleChanged(fontScale: Float): Unit
Called when the captioning font scaling factor changes.
Parameters | |
---|---|
fontScale |
Float: the preferred font scaling factor |
onLocaleChanged
open fun onLocaleChanged(locale: Locale?): Unit
Called when the captioning locale changes.
Parameters | |
---|---|
locale |
Locale?: the preferred captioning locale, or null if not specified |
onSystemAudioCaptioningChanged
open fun onSystemAudioCaptioningChanged(enabled: Boolean): Unit
Called when the system audio caption enabled state changes.
Parameters | |
---|---|
enabled |
Boolean: the system audio caption enabled state |
onSystemAudioCaptioningUiChanged
open fun onSystemAudioCaptioningUiChanged(enabled: Boolean): Unit
Called when the system audio caption UI enabled state changes.
Parameters | |
---|---|
enabled |
Boolean: the system audio caption UI enabled state |
onUserStyleChanged
open fun onUserStyleChanged(userStyle: CaptioningManager.CaptionStyle): Unit
Called when the captioning user style changes.
Parameters | |
---|---|
userStyle |
CaptioningManager.CaptionStyle: the user's new preferred style This value cannot be null . |