Class ShadowCaptioningManager


  • @Implements(android.view.accessibility.CaptioningManager.class)
    public class ShadowCaptioningManager
    extends java.lang.Object
    Shadow of CaptioningManager.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addCaptioningChangeListener​(android.view.accessibility.CaptioningManager.CaptioningChangeListener listener)  
      protected float getFontScale()
      Returns 1.0 as default or the most recent value passed to #setFontScale()
      protected java.util.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​(android.view.accessibility.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​(java.util.Locale locale)
      Sets the value to be returned by CaptioningManager.getLocale()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShadowCaptioningManager

        public ShadowCaptioningManager()
    • 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 by CaptioningManager.getFontScale()
      • isEnabled

        @Implementation(minSdk=19)
        protected boolean isEnabled()
        Returns false or the most recent value passed to setEnabled(boolean)
      • setEnabled

        public void setEnabled​(boolean isEnabled)
        Sets the value to be returned by CaptioningManager.isEnabled()
      • addCaptioningChangeListener

        @Implementation(minSdk=19)
        protected void addCaptioningChangeListener​(android.view.accessibility.CaptioningManager.CaptioningChangeListener listener)
      • removeCaptioningChangeListener

        @Implementation(minSdk=19)
        protected void removeCaptioningChangeListener​(android.view.accessibility.CaptioningManager.CaptioningChangeListener listener)
      • getLocale

        @Implementation(minSdk=19)
        @Nullable
        protected java.util.Locale getLocale()
        Returns null or the most recent value passed to setLocale(Locale)
      • setLocale

        public void setLocale​(@Nullable
                              java.util.Locale locale)
        Sets the value to be returned by CaptioningManager.getLocale()