Skip to content

Most visited

Recently visited

navigation

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

CaptioningManager.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 onUserStyleChanged(CaptioningManager.CaptionStyle userStyle)

Called when the captioning user style changes.

Inherited methods

From class java.lang.Object

Public constructors

CaptioningManager.CaptioningChangeListener

Added in API level 19
CaptioningManager.CaptioningChangeListener ()

Public methods

onEnabledChanged

Added in API level 19
void onEnabledChanged (boolean enabled)

Called when the captioning enabled state changes.

Parameters
enabled boolean: the user's new preferred captioning enabled state

onFontScaleChanged

Added in API level 19
void onFontScaleChanged (float fontScale)

Called when the captioning font scaling factor changes.

Parameters
fontScale float: the preferred font scaling factor

See also:

onLocaleChanged

Added in API level 19
void onLocaleChanged (Locale locale)

Called when the captioning locale changes.

Parameters
locale Locale: the preferred captioning locale, or null if not specified

See also:

onUserStyleChanged

Added in API level 19
void onUserStyleChanged (CaptioningManager.CaptionStyle userStyle)

Called when the captioning user style changes.

Parameters
userStyle CaptioningManager.CaptionStyle: the user's new preferred style

See also:

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.