public interface LifecycleObserver
Activity/Fragment life cycle observer
Shared:(both is called by android)- Why not just FragmentController/ActivityController?
- Controller is reusable across Fragment/Activity, so it may observe any one of them in different context, but core logic remains the same. So this way ensures controller will not be limited to choose Activity or Fragment in definition phase.
You can just make it polymorphism by using it in Activity or Fragment. Created by nius on 7/23/15.Modifier and Type | Interface and Description |
---|---|
static interface |
LifecycleObserver.ForActivity |
static interface |
LifecycleObserver.ForFragment |