Package 

Class AnimationsDebugModule

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

    
    public class AnimationsDebugModule
    extends NativeAnimationsDebugModuleSpec
                        

    Module that records debug information during transitions (animated navigation events such as going from one screen to another).

    • Method Summary

      Modifier and Type Method Description
      String getName()
      void startRecordingFps()
      void stopRecordingFps(double animationStopTimeMs) Called when an animation finishes.
      void invalidate() The CatalystInstance is going away with Venice.
      • Methods inherited from class com.facebook.react.bridge.BaseJavaModule

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

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

      • stopRecordingFps

         void stopRecordingFps(double animationStopTimeMs)

        Called when an animation finishes. The caller should include the animation stop time in ms(unix time) so that we know when the animation stopped from the JS perspective and we don'tcount time after as being part of the animation.

      • 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.