| Interface | Description |
|---|---|
| ControllerLifecyclePlugin |
Lifecycle plugin can be plugged into Pan, so it will observe the lifecycle and behave accordingly.
It can only take effects with the help of controllers. |
| LifecycleObserved |
表明这个Activity或者Fragment的生命周期被观察了
Created by nius on 7/22/15.
|
| LifecycleObserver |
Activity/Fragment life cycle observer
|
| LifecycleObserver.ForActivity | |
| LifecycleObserver.ForFragment | |
| OnActivityCreated |
Fragment's corresponding OnRestoreInstanceState
Created by nius on 10/12/15.
|
| OnActivityResult |
对于Framgent.onActivityResult,同样可以用这个接口,因为两个其实调用位置是一样的
在Pan中,继承这个接口哪怕是在Fragment中绑定的,也是会被加入到观察者Map中,被调用
Created by nius on 7/22/15.
|
| OnAttach |
Created by nius on 10/12/15.
|
| OnConfigurationChanged |
e.g.
|
| OnDestroy |
Created by nius on 7/22/15.
|
| OnDestroyView |
Created by nius on 7/22/15.
|
| OnDetach |
Created by nius on 10/12/15.
|
| OnHiddenChanged |
Created by nius on 10/12/15.
|
| OnNewIntent |
Created by nius on 10/12/15.
|
| OnPause |
Created by nius on 7/22/15.
|
| OnPostCreate |
Created by nius on 10/13/15.
|
| OnRestart |
Created by nius on 10/12/15.
|
| OnRestoreInstanceState |
Created by nius on 10/12/15.
|
| OnResume |
Created by nius on 7/22/15.
|
| OnSaveInstanceState |
Created by nius on 10/12/15.
|
| OnStart |
Created by nius on 7/22/15.
|
| OnStop |
Created by nius on 7/22/15.
|
| OnViewCreated |
Fragment的View刚被创建完
一般来讲,在Fragment.onCreateView中绑定Controller
此方法在其后被调用,可以用来出发Controller
Created by nius on 7/29/15.
|
| OnVisible |
对应Fragment的setUserVisibleHint方法,换个名字更明确一点
大部分情况下Fragment的onPause和onResume都不太好用,直接使用这个比较明确
Created by nius on 7/22/15.
|
| PanLifecyclePlugin |
Just do something on proper lifecycle for every Activity/Fragment.
It differs from ControllerLifecyclePlugin for it is only called once per lifecycle event. |
| Class | Description |
|---|---|
| PackageInfo |
用于Activity和Fragment的生命周期
注意,没有onCreate和onCreateView
因为一般绑定都发生在这里面,请使用GeneralController.bindEvents
Created by nius on 7/22/15.
|