LifeCycle原理时序图
2021-09-22 21:05:38 4 举报
LifeCycle原理时序图
作者其他创作
大纲/内容
LifecycleRegistry
backwardPass/forwardPass
getInfo
dispatch(Lifecycle.Event.ON_START)
ComponentActivity
getStateAfter
onStart
LifeCycleActivity
Lifecycling
ReflectiveGenericLifecycleObserver
onStateChanged
invokeMethodsForEvent
ReportFragment
附加一个没有页面的Fragment
injectIfNeededIn
TestLifeCycle:LifecycleObserver
Observer
lifecycleEventObserver
new LifecycleRegistry()
invokeCallbacks
new CallbackInfo
getLifecycle
ClassesInfo
createInfo反射获取观察者的所有方法以及注解信息封装成CallbackInfo对象
CallbackInfo
onCreate
moveToState
handleLifecycleEvent
ObserverWithState.dispatchEvent
addObserver(LifecycleObserver)
ClassesInfoCache
new ObserverWithState
mMethod.invoke
mLifecycleRegistry
onStart()
invokeCallback
new ReflectiveGenericLifecycleObserver
0 条评论
下一页
为你推荐
查看更多