getLifecycleOwner

Returns the lifecycle owner for coroutine scope. For Fragment-based toolbars, return fragment?.viewLifecycleOwner. For View-based toolbars, return ViewTreeLifecycleOwner.get(view).

Return

The lifecycle owner, or {@code null} if not available.