Or you can use AndroidViewModel if you want to inject context to your model. MVVM on Android Crash Course - Kotlin & Android Architecture Components.
確定! 回上一頁