ParentBindingInterface

interface ParentBindingInterface<BINDING : ViewBinding>

Interface defining the binding lifecycle contract for UI components.
Ensures consistent binding initialization and ViewModel event collection across Activities and Fragments.

UI 컴포넌트의 바인딩 생명주기 계약을 정의하는 인터페이스입니다.
Activity/Fragment 전반에서 바인딩 초기화와 ViewModel 이벤트 수집을 일관되게 제공합니다.

Parameters

BINDING

The type of ViewBinding class.

ViewBinding 클래스 타입.

Inheritors

Functions

Link copied to clipboard
open fun onEventVmCollect(binding: BINDING)

Called to start collecting ViewModel events.
Typically invoked once per lifecycle (e.g., onCreate or onViewCreated).

ViewModel 이벤트 수집을 시작할 때 호출됩니다.
보통 생명주기 당 1회(onCreate 또는 onViewCreated) 호출됩니다.