被监听的系统组件需要去实现LifecycleOwner 接口,观察者需要实现LifecycleObserver 接口。 (一)使用场景1:使用LifeCycle 解耦页面与组件. (1)解耦 ...
確定! 回上一頁