Package org.robolectric.shadows
Class ShadowCaptioningManager
- java.lang.Object
-
- org.robolectric.shadows.ShadowCaptioningManager
-
@Implements(android.view.accessibility.CaptioningManager.class) public class ShadowCaptioningManager extends Object
Shadow ofCaptioningManager.
-
-
Constructor Summary
Constructors Constructor Description ShadowCaptioningManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddCaptioningChangeListener(CaptioningManager.CaptioningChangeListener listener)protected floatgetFontScale()Returns 1.0 as default or the most recent value passed to#setFontScale()protected LocalegetLocale()Returns null or the most recent value passed tosetLocale(Locale)protected booleanisEnabled()Returns false or the most recent value passed tosetEnabled(boolean)protected voidremoveCaptioningChangeListener(CaptioningManager.CaptioningChangeListener listener)voidsetEnabled(boolean isEnabled)Sets the value to be returned byCaptioningManager.isEnabled()voidsetFontScale(float fontScale)Sets the value to be returned byCaptioningManager.getFontScale()voidsetLocale(Locale locale)Sets the value to be returned byCaptioningManager.getLocale()
-
-
-
Method Detail
-
getFontScale
@Implementation(minSdk=19) protected float getFontScale()
Returns 1.0 as default or the most recent value passed to#setFontScale()
-
setFontScale
public void setFontScale(float fontScale)
Sets the value to be returned byCaptioningManager.getFontScale()
-
isEnabled
@Implementation(minSdk=19) protected boolean isEnabled()
Returns false or the most recent value passed tosetEnabled(boolean)
-
setEnabled
public void setEnabled(boolean isEnabled)
Sets the value to be returned byCaptioningManager.isEnabled()
-
addCaptioningChangeListener
@Implementation(minSdk=19) protected void addCaptioningChangeListener(CaptioningManager.CaptioningChangeListener listener)
-
removeCaptioningChangeListener
@Implementation(minSdk=19) protected void removeCaptioningChangeListener(CaptioningManager.CaptioningChangeListener listener)
-
getLocale
@Implementation(minSdk=19) @Nullable protected Locale getLocale()
Returns null or the most recent value passed tosetLocale(Locale)
-
setLocale
public void setLocale(@Nullable Locale locale)
Sets the value to be returned byCaptioningManager.getLocale()
-
-