Code example for AsyncTaskLoader

Methods: deliverResult

0
		@Override 
		public void deliverResult(List<Show> data) {
			cachedResult = data;
 
			if (isStarted()) {
				super.deliverResult(data);
			} 
		} 
 
		@Override 
		public void onStartLoading() { 
			if (cachedResult != null) {
				deliverResult(cachedResult);
			} else { 
				forceLoad();
			} 
		} 
 
		@Override 
		public void onStopLoading() { 
			cancelLoad();