Search in sources :

Example 1 with LifecycleListener

use of com.android.example.devsummit.archdemo.util.LifecycleListener in project dev-summit-architecture-demo by yigit.

the class BaseActivity method onStop.

@Override
protected void onStop() {
    super.onStop();
    for (LifecycleListener callback : mLifecycleListeners) {
        callback.onProviderStopped();
    }
    getComponent().jobManager().cancelJobsInBackground(null, TagConstraint.ALL, mSessionId);
    mLifecycleListeners.clear();
}
Also used : LifecycleListener(com.android.example.devsummit.archdemo.util.LifecycleListener)

Aggregations

LifecycleListener (com.android.example.devsummit.archdemo.util.LifecycleListener)1