{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

RecomposerInfo

public interface RecomposerInfo


Read-only information about a Recomposer. Used when code should only monitor the activity of a Recomposer, and not attempt to alter its state or create new compositions from it.

Summary

Public methods

abstract long

The running count of the number of times the Recomposer awoke and applied changes to one or more Composers.

abstract boolean

true if the Recomposer has been assigned work to do and it is currently performing that work or awaiting an opportunity to do so.

abstract @NonNull <Error class: unknown class><@NonNull Recomposer.State>

The current State of the Recomposer.

Public methods

getChangeCount

abstract long getChangeCount()

The running count of the number of times the Recomposer awoke and applied changes to one or more Composers. This count is unaffected if the composer awakes and recomposed but composition did not produce changes to apply.

getHasPendingWork

abstract boolean getHasPendingWork()

true if the Recomposer has been assigned work to do and it is currently performing that work or awaiting an opportunity to do so.

getState

abstract @NonNull <Error class: unknown class><@NonNull Recomposer.StategetState()

The current State of the Recomposer. See each State value for its meaning.