ViewModel原理时序图
2021-09-22 21:07:36 3 举报
ViewModel原理时序图
作者其他创作
大纲/内容
getViewModelStore
get
屏幕切换后还原viewmodel相关信息
nc.viewModelStore
ViewModel
get(ViewModel)
ViewModelStore
ViewModelProvider
NonConfigurationInstances[nc].viewmodelStore
屏幕切换前保存viewmodel相关信息
ViewModelActivity
ViewModelStoreOwner
NewInstanceFactory.create()
getLastCustomNonConfigurationInstance
ViewModel.newInstance()
Factory.create()
onRetainNonConfigurationInstance
ComponentActivity
data
0 条评论
下一页