@ file : Suppress (" unused ") Ċ Ċ package Ġby . kir ich 1 4 0 9 . view binding delegate Ċ Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . annotation . Id Res Ċ import Ġandroidx . annotation . Restrict To Ċ import Ġandroidx . lifecycle . Lifecycle Owner Ċ import Ġandroidx . lifecycle . View Tree Lifecycle Owner Ċ import Ġandroidx . view binding . View Binding Ċ import Ġby . kir ich 1 4 0 9 . view binding delegate . internal . require ViewById Compat Ċ Ċ @ Published Api Ċ @ Restrict To ( Restrict To . Scope . LIBRARY ) Ċ internal Ġclass ĠViewGroup View Binding Property < in ĠV Ġ: ĠViewGroup , Ġout ĠT Ġ: ĠView Binding >( ĊĠĠĠ Ġview Binder : Ġ( V ) Ġ-> ĠT Ċ ) Ġ: ĠLifecycle View Binding Property < V , ĠT >( view Binder ) Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġget Lifecycle Owner ( this Ref : ĠV ): ĠLifecycle Owner Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠcheckNotNull ( View Tree Lifecycle Owner . get ( this Ref )) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" Fragment Ġdoesn 't Ġhave Ġview Ġassociated Ġwith Ġit Ġor Ġthe Ġview Ġhas Ġbeen Ġdestroyed " ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ Ċ /** Ċ Ġ* ĠCreate Ġnew Ġ[ View Binding ] Ġassociated Ġwith Ġthe Ġ[ ViewGroup ] Ċ Ġ* Ċ Ġ* Ġ@ param Ġvb Factory ĠFunction Ġthat Ġcreate Ġnew Ġinstance Ġof Ġ[ View Binding ]. Ġ` My View Binding :: bind ` Ġcan Ġbe Ġused Ċ Ġ*/ Ċ inline Ġfun Ġ< T Ġ: ĠView Binding > ĠViewGroup . view Binding ( ĊĠĠĠ Ġcross inline Ġvb Factory : Ġ( ViewGroup ) Ġ-> ĠT , Ċ ): ĠView Binding Property < ViewGroup , ĠT > Ġ{ ĊĠĠĠ Ġreturn Ġview Binding ( lifecycle Aware Ġ= Ġfalse , Ġvb Factory Ġ= Ġvb Factory ) Ċ } Ċ Ċ /** Ċ Ġ* ĠCreate Ġnew Ġ[ View Binding ] Ġassociated Ġwith Ġthe Ġ[ ViewGroup ] Ċ Ġ* Ċ Ġ* Ġ@ param Ġvb Factory ĠFunction Ġthat Ġcreate Ġnew Ġinstance Ġof Ġ[ View Binding ]. Ġ` My View Binding :: bind ` Ġcan Ġbe Ġused Ċ Ġ* Ġ@ param Ġlifecycle Aware ĠGet Ġ[ Lifecycle Owner ] Ġfrom Ġthe Ġ[ ViewGroup ][ this ] Ġusing Ġ[ View Tree Lifecycle Owner ] Ċ Ġ*/ Ċ inline Ġfun Ġ< T Ġ: ĠView Binding > ĠViewGroup . view Binding ( ĊĠĠĠ Ġlifecycle Aware : ĠBoolean , ĊĠĠĠ Ġcross inline Ġvb Factory : Ġ( ViewGroup ) Ġ-> ĠT , Ċ ): ĠView Binding Property < ViewGroup , ĠT > Ġ{ ĊĠĠĠ Ġreturn Ġif Ġ( lifecycle Aware ) Ġ{ ĊĠĠĠĠĠĠĠ ĠViewGroup View Binding Property Ġ{ Ġview Group Ġ-> Ġvb Factory ( view Group ) Ġ} ĊĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠ ĠLazy View Binding Property Ġ{ Ġview Group Ġ-> Ġvb Factory ( view Group ) Ġ} ĊĠĠĠ Ġ} Ċ } Ċ Ċ /** Ċ Ġ* ĠCreate Ġnew Ġ[ View Binding ] Ġassociated Ġwith Ġthe Ġ[ ViewGroup ] Ċ Ġ* Ċ Ġ* Ġ@ param Ġvb Factory ĠFunction Ġthat Ġcreate Ġnew Ġinstance Ġof Ġ[ View Binding ]. Ġ` My View Binding :: bind ` Ġcan Ġbe Ġused Ċ Ġ* Ġ@ param Ġview Binding Root Id ĠRoot Ġview 's Ġid Ġthat Ġwill Ġbe Ġused Ġas Ġroot Ġfor Ġthe Ġview Ġbinding Ċ Ġ*/ Ċ @ Deprecated (" Order Ġof Ġarguments Ġwas Ġchanged ", ĠReplace With (" view Binding ( view Binding Root Id , Ġvb Factory ) ")) Ċ inline Ġfun Ġ< T Ġ: ĠView Binding > ĠViewGroup . view Binding ( ĊĠĠĠ Ġcross inline Ġvb Factory : Ġ( View ) Ġ-> ĠT , ĊĠĠĠ Ġ@ Id Res Ġview Binding Root Id : ĠInt , Ċ ): ĠView Binding Property < ViewGroup , ĠT > Ġ{ ĊĠĠĠ Ġreturn Ġview Binding ( view Binding Root Id , Ġvb Factory ) Ċ } Ċ Ċ inline Ġfun Ġ< T Ġ: ĠView Binding > ĠViewGroup . view Binding ( ĊĠĠĠ Ġ@ Id Res Ġview Binding Root Id : ĠInt , ĊĠĠĠ Ġcross inline Ġvb Factory : Ġ( View ) Ġ-> ĠT , Ċ ): ĠView Binding Property < ViewGroup , ĠT > Ġ{ ĊĠĠĠ Ġreturn Ġview Binding ( view Binding Root Id Ġ= Ġview Binding Root Id , Ġlifecycle Aware Ġ= Ġfalse , Ġvb Factory Ġ= Ġvb Factory ) Ċ } Ċ Ċ /** Ċ Ġ* ĠCreate Ġnew Ġ[ View Binding ] Ġassociated Ġwith Ġthe Ġ[ ViewGroup ] Ċ Ġ* Ċ Ġ* Ġ@ param Ġvb Factory ĠFunction Ġthat Ġcreate Ġnew Ġinstance Ġof Ġ[ View Binding ]. Ġ` My View Binding :: bind ` Ġcan Ġbe Ġused Ċ Ġ* Ġ@ param Ġview Binding Root Id ĠRoot Ġview 's Ġid Ġthat Ġwill Ġbe Ġused Ġas Ġroot Ġfor Ġthe Ġview Ġbinding Ċ Ġ* Ġ@ param Ġlifecycle Aware ĠGet Ġ[ Lifecycle Owner ] Ġfrom Ġthe Ġ[ ViewGroup ][ this ] Ġusing Ġ[ View Tree Lifecycle Owner ] Ċ Ġ*/ Ċ inline Ġfun Ġ< T Ġ: ĠView Binding > ĠViewGroup . view Binding ( ĊĠĠĠ Ġ@ Id Res Ġview Binding Root Id : ĠInt , ĊĠĠĠ Ġlifecycle Aware : ĠBoolean , ĊĠĠĠ Ġcross inline Ġvb Factory : Ġ( View ) Ġ-> ĠT , Ċ ): ĠView Binding Property < ViewGroup , ĠT > Ġ{ ĊĠĠĠ Ġreturn Ġif Ġ( lifecycle Aware ) Ġ{ ĊĠĠĠĠĠĠĠ ĠViewGroup View Binding Property Ġ{ Ġview Group Ġ-> Ġvb Factory ( view Group ) Ġ} ĊĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠ ĠLazy View Binding Property Ġ{ Ġview Group : ĠViewGroup Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġvb Factory ( view Group . require ViewById Compat ( view Binding Root Id )) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ