-
public final class FrameDrawUtilKt
-
-
Method Summary
Modifier and Type Method Description final static UnitdoOnFirstDraw(Activity $self, Function0<Unit> action)Performs the given action when the activity very first frame is drawn. final static UnitdoOnNextDraw(View $self, Function0<Unit> action)Performs the given action when the view is next drawn. -
-
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.
-
-
-
-