Package 

Class AccessibilityInfoModule

  • All Implemented Interfaces:
    com.facebook.react.bridge.LifecycleEventListener , com.facebook.react.bridge.NativeModule , com.facebook.react.bridge.ReactModuleWithSpec , com.facebook.react.turbomodule.core.interfaces.TurboModule

    
    public class AccessibilityInfoModule
    extends NativeAccessibilityInfoSpec implements LifecycleEventListener
                        

    Module that monitors and provides information about the state of Touch Exploration service on the device. For API >= 19.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static String NAME
    • Method Summary

      Modifier and Type Method Description
      String getName()
      void isReduceMotionEnabled(Callback successCallback)
      void isTouchExplorationEnabled(Callback successCallback)
      void isAccessibilityServiceEnabled(Callback successCallback)
      void onHostResume() Called either when the host activity receives a resume event (e.g.
      void onHostPause() Called when host activity receives pause event (e.g.
      void initialize() This is called at the end of createCatalystInstance afterthe CatalystInstance has been created, in order to initialize NativeModules that require theCatalystInstance or JS modules.
      void invalidate() The CatalystInstance is going away with Venice.
      void onHostDestroy() Called when host activity receives destroy event (e.g.
      void announceForAccessibility(String message)
      void setAccessibilityFocus(double reactTag)
      void getRecommendedTimeoutMillis(double originalTimeout, Callback successCallback)
      • Methods inherited from class com.facebook.fbreact.specs.NativeAccessibilityInfoSpec

        announceForAccessibility, getRecommendedTimeoutMillis, isAccessibilityServiceEnabled, isReduceMotionEnabled, isTouchExplorationEnabled
      • Methods inherited from class com.facebook.react.bridge.BaseJavaModule

        canOverrideExistingModule, getConstants, hasConstants, onCatalystInstanceDestroy
      • Methods inherited from class java.lang.Object

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

      • onHostResume

         void onHostResume()

        Called either when the host activity receives a resume event (e.g. onResume orif the native module that implements this is initialized while the host activity is alreadyresumed. Always called for the most current activity.

      • onHostPause

         void onHostPause()

        Called when host activity receives pause event (e.g. onPause. Always calledfor the most current activity.

      • initialize

         void initialize()

        This is called at the end of createCatalystInstance afterthe CatalystInstance has been created, in order to initialize NativeModules that require theCatalystInstance or JS modules.

      • invalidate

         void invalidate()

        The CatalystInstance is going away with Venice. Therefore, the TurboModule infra introduces theinvalidate() method to allow NativeModules to clean up after themselves.

      • onHostDestroy

         void onHostDestroy()

        Called when host activity receives destroy event (e.g. onDestroy. Only calledfor the last React activity to be destroyed.