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

RootViewPicker

@RootViewPickerScope class RootViewPicker : Provider


Provides the root View of the top-most Window, with which the user can interact. View is guaranteed to be in a stable state - i.e. not pending any updates from the application.

This provider can only be accessed from the main thread.

Summary

Public constructors

Public functions

View!
get()

Public constructors

RootViewPicker

RootViewPicker()

Public functions

get

fun get(): View!