package Ġcom . l az ypot ato . mv vm _ rx java _ ret rofit _ paging . ui . movie _ details Ċ Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ Ċ class ĠMovie Details ViewModel Factory ( ĊĠĠĠ Ġprivate Ġval Ġmovie Details Repository : ĠMovie Details Repository Ċ ) Ġ: ĠViewModel Provider . Factory Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġ< T Ġ: ĠViewModel ?> Ġcreate ( model Class : ĠClass < T >): ĠT Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠMovie Details ViewModel ( movie Details Repository ) Ġas ĠT ĊĠĠĠ Ġ} Ċ }