https://kotlinlang.org logo
#android
Title
# android
e

Ellen Spertus

04/03/2020, 10:39 PM
How do I create a
ViewModel
class with a constructor that takes parameters? I found this advice, but there’s a comment saying it’s deprecated. https://www.albertgao.xyz/2018/04/13/how-to-add-additional-parameters-to-viewmodel-via-kotlin/
stackoverflow 1
21 Views