在你想觀察的生命周期中調用對應方法 @OnLifecycleEvent(Lifecycle.Event.ON_RESUME) fun loadData() { } @OnLifecycleEvent(Lifecycle.Event.
確定! 回上一頁