You can use create factory kotlin extension to create ViewModel factories at run time. Extension fun <T : ViewModel> T.createFactory(): ...
確定! 回上一頁