TL;DR; #2 To scope an instance to a ViewModel use @ViewModelScoped, to scope an instance to be used by _all_ ViewModels, use @ActivityRetainedScoped.
確定! 回上一頁