ViewKt
Kotlin
|Java
public final class ViewKt
Summary
Public methods |
|
|---|---|
static final @Nullable LifecycleOwner |
ViewKt.findViewTreeLifecycleOwner(@NonNull View receiver)Locates the |
Public methods
ViewKt.findViewTreeLifecycleOwner
@Nullable
public static final LifecycleOwner ViewKt.findViewTreeLifecycleOwner(@NonNull View receiver)
Locates the LifecycleOwner responsible for managing this View, if present. This may be used to scope work or heavyweight resources associated with the view that may span cycles of the view becoming detached and reattached from a window.