Ability的生命周期函數(shù):
onStart :創(chuàng)建Ability時(shí)觸發(fā)
onActive:進(jìn)入前臺(tái)時(shí)觸發(fā)
onForeground:可見時(shí)觸發(fā)
onBackground:不可見時(shí)觸發(fā)
onInactive:失去焦點(diǎn)時(shí)觸發(fā)
onStop:銷毀時(shí)觸發(fā)

image.png

image.png
Ability的生命周期函數(shù):
onStart :創(chuàng)建Ability時(shí)觸發(fā)
onActive:進(jìn)入前臺(tái)時(shí)觸發(fā)
onForeground:可見時(shí)觸發(fā)
onBackground:不可見時(shí)觸發(fā)
onInactive:失去焦點(diǎn)時(shí)觸發(fā)
onStop:銷毀時(shí)觸發(fā)