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 of
CaptioningManager.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected floatReturns 1.0 as default or the most recent value passed to#setFontScale()protected LocaleReturns null or the most recent value passed tosetLocale(Locale)protected booleanReturns false or the most recent value passed tosetEnabled(boolean)protected voidvoidsetEnabled(boolean isEnabled) Sets the value to be returned byCaptioningManager.isEnabled()voidsetFontScale(float fontScale) Sets the value to be returned byCaptioningManager.getFontScale()voidSets the value to be returned byCaptioningManager.getLocale()
-
Constructor Details
-
ShadowCaptioningManager
public ShadowCaptioningManager()
-
-
Method Details
-
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
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
Returns null or the most recent value passed tosetLocale(Locale) -
setLocale
Sets the value to be returned byCaptioningManager.getLocale()
-