ParentBindingInterfaceForLayout

Interface for layouts that support ViewBinding or DataBinding. Defines the contract for binding initialization and cleanup.

ViewBinding 또는 DataBinding을 지원하는 레이아웃을 위한 인터페이스입니다. 바인딩 초기화 및 정리(cleanup)를 위한 계약을 정의합니다.

Parameters

BINDING

The type of ViewBinding. (ViewBinding 타입)

Inheritors

Functions

Link copied to clipboard
open fun onCreate(owner: LifecycleOwner)
Link copied to clipboard
open fun onDestroy(owner: LifecycleOwner)
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) 호출됩니다.

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

Called when the binding is initialized in onCreate().
Implement setup logic that requires binding here.

onCreate에서 바인딩이 초기화된 후 호출됩니다.
바인딩이 필요한 초기화 로직을 여기서 수행하세요.

Link copied to clipboard
open fun onPause(owner: LifecycleOwner)
Link copied to clipboard
open fun onResume(owner: LifecycleOwner)
Link copied to clipboard
open fun onStart(owner: LifecycleOwner)
Link copied to clipboard
open fun onStop(owner: LifecycleOwner)