Package 

Class FirstDrawDoneListener

  • All Implemented Interfaces:
    android.view.ViewTreeObserver.OnDrawListener

    
    public class FirstDrawDoneListener
     implements ViewTreeObserver.OnDrawListener
                        

    OnDrawListener that unregisters itself and invokes callback when the next draw is done. This API 16+ implementation is an approximation of the initial-display-time defined by Android Vitals.

    • Method Summary

      Modifier and Type Method Description
      static void registerForNextDraw(@NotNull() Activity activity, @NotNull() Runnable drawDoneCallback, @NotNull() BuildInfoProvider buildInfoProvider)
      static void registerForNextDraw(@NotNull() View view, @NotNull() Runnable drawDoneCallback, @NotNull() BuildInfoProvider buildInfoProvider) Registers a post-draw callback for the next draw of a view.
      void onDraw()
      • Methods inherited from class android.view.ViewTreeObserver.OnDrawListener

        onDraw
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait