Code example for AsyncTaskLoader

Methods: onReset

0
        cancelLoad();
    } 
     
    @Override 
    protected void onReset() { 
        super.onReset(); 
         
        // Ensure the loader is stopped 
        onStopLoading(); 
         
        repository.unregisterObserver(observer);
        registered = true;
        loadedState = null;
    } 
 
}