package Ġzaw al ich . ros z ak . in poster . navigation Ċ Ċ import Ġandroid . arch . lifecycle . ViewModel Ċ import Ġzaw al ich . ros z ak . in poster . views . Base View ĊĊ Ċ class ĠEnum Based View Class Resolver Strategy Ġ: ĠView Class Resolver Strategy Ġ{ Ċ ĉ override Ġfun Ġfind Base View For ViewModel ( vm : ĠViewModel ): ĠClass < out ĠBase View > Ġ{ Ċĉ ĉ val Ġcontext Binding Ġ= ĠScreen Context Enum . Binding Type . values (). first Ġ{ Ċĉĉ ĉ it . viewModel Class Ġ== Ġvm :: class . java Ċĉ ĉ } ĊĊĉ ĉ return Ġcontext Binding . view Class Ċ ĉ } Ċ }