BatchedStateUpdatesStrategy

A Batched State Update Strategy will define when do we schedule a final state update and corresponding layout calculation, so that we can enqueue the most reasonable number of state updates without incurring with an excessive number of layout calculations.

Functions

Link copied to clipboard
abstract fun onAsyncStateUpdateEnqueued(attribution: String?, isCreateLayoutInProgress: Boolean): Boolean

This method is called whenever an async state update was enqueued and added to the StateHandler.

Link copied to clipboard

This method is called whenever ComponentTree#updateStateInternal(boolean, String, boolean) is called.

Link copied to clipboard
abstract fun release()

This method should be called whenever the resources held by this strategy should be freed or reset.