CaptioningManager.CaptioningChangeListener
public
static
abstract
class
CaptioningManager.CaptioningChangeListener
extends Object
java.lang.Object | |
↳ | android.view.accessibility.CaptioningManager.CaptioningChangeListener |
Listener for changes in captioning properties, including enabled state and user style preferences.
Summary
Public constructors | |
---|---|
CaptioningChangeListener()
|
Public methods | |
---|---|
void
|
onEnabledChanged(boolean enabled)
Called when the captioning enabled state changes. |
void
|
onFontScaleChanged(float fontScale)
Called when the captioning font scaling factor changes. |
void
|
onLocaleChanged(Locale locale)
Called when the captioning locale changes. |
void
|
onSystemAudioCaptioningChanged(boolean enabled)
Called when the system audio caption enabled state changes. |
void
|
onSystemAudioCaptioningUiChanged(boolean enabled)
Called when the system audio caption UI enabled state changes. |
void
|
onUserStyleChanged(CaptioningManager.CaptionStyle userStyle)
Called when the captioning user style changes. |
Inherited methods | |
---|---|
Public constructors
CaptioningChangeListener
public CaptioningChangeListener ()
Public methods
onEnabledChanged
public void onEnabledChanged (boolean enabled)
Called when the captioning enabled state changes.
Parameters | |
---|---|
enabled |
boolean : the user's new preferred captioning enabled state |
onFontScaleChanged
public void onFontScaleChanged (float fontScale)
Called when the captioning font scaling factor changes.
Parameters | |
---|---|
fontScale |
float : the preferred font scaling factor |
See also:
onLocaleChanged
public void onLocaleChanged (Locale locale)
Called when the captioning locale changes.
Parameters | |
---|---|
locale |
Locale : the preferred captioning locale, or null if not specified |
See also:
onSystemAudioCaptioningChanged
public void onSystemAudioCaptioningChanged (boolean enabled)
Called when the system audio caption enabled state changes.
Parameters | |
---|---|
enabled |
boolean : the system audio caption enabled state |
onSystemAudioCaptioningUiChanged
public void onSystemAudioCaptioningUiChanged (boolean enabled)
Called when the system audio caption UI enabled state changes.
Parameters | |
---|---|
enabled |
boolean : the system audio caption UI enabled state |
onUserStyleChanged
public void onUserStyleChanged (CaptioningManager.CaptionStyle userStyle)
Called when the captioning user style changes.
Parameters | |
---|---|
userStyle |
CaptioningManager.CaptionStyle : the user's new preferred style
This value cannot be null . |
See also: