bindLifecycleObserver

Binds a lifecycle observer to the current LifecycleOwner.
Replaces the observer if the owner changes, prevents duplicate registration.

현재 LifecycleOwner에 라이프사이클 옵저버를 바인딩합니다.
Owner가 변경되면 옵저버를 교체하고, 중복 등록을 방지합니다.

Return

The current LifecycleOwner or null if binding failed.

현재 LifecycleOwner 또는 바인딩 실패 시 null.

Parameters

observer

The lifecycle observer to bind.

바인딩할 라이프사이클 옵저버.