@Implements(android.view.accessibility.CaptioningManager.class) public class ShadowCaptioningManager extends Object
CaptioningManager.| Constructor | Description |
|---|---|
ShadowCaptioningManager() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
addCaptioningChangeListener(CaptioningManager.CaptioningChangeListener listener) |
|
protected float |
getFontScale() |
Returns 1.0 as default or the most recent value passed to
#setFontScale() |
protected Locale |
getLocale() |
Returns null or the most recent value passed to
setLocale(Locale) |
protected boolean |
isEnabled() |
Returns false or the most recent value passed to
setEnabled(boolean) |
protected void |
removeCaptioningChangeListener(CaptioningManager.CaptioningChangeListener listener) |
|
void |
setEnabled(boolean isEnabled) |
Sets the value to be returned by
CaptioningManager.isEnabled() |
void |
setFontScale(float fontScale) |
Sets the value to be returned by
CaptioningManager.getFontScale() |
void |
setLocale(Locale locale) |
Sets the value to be returned by
CaptioningManager.getLocale() |
@Implementation(minSdk=19) protected float getFontScale()
#setFontScale()public void setFontScale(float fontScale)
CaptioningManager.getFontScale()@Implementation(minSdk=19) protected boolean isEnabled()
setEnabled(boolean)public void setEnabled(boolean isEnabled)
CaptioningManager.isEnabled()@Implementation(minSdk=19) protected void addCaptioningChangeListener(CaptioningManager.CaptioningChangeListener listener)
@Implementation(minSdk=19) protected void removeCaptioningChangeListener(CaptioningManager.CaptioningChangeListener listener)
@Implementation(minSdk=19) @Nullable protected Locale getLocale()
setLocale(Locale)public void setLocale(@Nullable
Locale locale)
CaptioningManager.getLocale()