{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
interface ActiveRootLister
Provides access to all root views in an application.
fun listActiveRoots(): (Mutable)List<Root!>!
Lists the active roots in an application at this moment.
| Throws | |
|---|---|
java.lang.IllegalStateException: java.lang.IllegalStateException |
if invoked from a thread besides the main thread. |