Most visited

Recently visited

Added in API level 19

CaptioningManager.CaptioningChangeListener

public static abstract class CaptioningManager.CaptioningChangeListener
extends Object

java.lang.Object
   ↳ android.view.accessibility.CaptioningManager.CaptioningChangeListener


监听器用于更改字幕属性,包括启用状态和用户样式偏好。

Summary

Public constructors

CaptioningManager.CaptioningChangeListener()

Public methods

void onEnabledChanged(boolean enabled)

当字幕启用状态改变时调用。

void onFontScaleChanged(float fontScale)

当字幕缩放因子改变时调用。

void onLocaleChanged(Locale locale)

字幕语言环境更改时调用。

void onUserStyleChanged(CaptioningManager.CaptionStyle userStyle)

当字幕用户风格发生变化时调用。

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)

当字幕启用状态改变时调用。

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

onFontScaleChanged

Added in API level 19
void onFontScaleChanged (float fontScale)

当字幕缩放因子改变时调用。

Parameters
fontScale float: the preferred font scaling factor

也可以看看:

onLocaleChanged

Added in API level 19
void onLocaleChanged (Locale locale)

字幕语言环境更改时调用。

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

也可以看看:

onUserStyleChanged

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

当字幕用户风格发生变化时调用。

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

也可以看看:

Hooray!