Package 

Class FrameDrawUtilKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit doOnFirstDraw(Activity $self, Function0<Unit> action) Performs the given action when the activity very first frame is drawn.
      final static Unit doOnNextDraw(View $self, Function0<Unit> action) Performs the given action when the view is next drawn.
      • Methods inherited from class java.lang.Object

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

      • doOnFirstDraw

        @UiThread() final static Unit doOnFirstDraw(Activity $self, Function0<Unit> action)

        Performs the given action when the activity very first frame is drawn.

        This function can be called multiple times on the Same activity, and all the submitted actions will be called.

      • doOnNextDraw

        @UiThread() final static Unit doOnNextDraw(View $self, Function0<Unit> action)

        Performs the given action when the view is next drawn.

        The action will only be invoked once on the next draw and then removed.