ViewKt

public final class ViewKt


Summary

Public methods

static final LifecycleOwner

Locates the LifecycleOwner responsible for managing this View, if present.

Public methods

ViewKt.findViewTreeLifecycleOwner

public static final LifecycleOwner ViewKt.findViewTreeLifecycleOwner(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.