void IPicasso <Bitmap, Drawable> .Complete(IBitmapHunter <Bitmap, Drawable> hunter) { Uri uri = hunter.Data.Uri; Action <Bitmap, Drawable> action = hunter.Action; List <Action <Bitmap, Drawable> > additionalActions = hunter.Actions; Bitmap result = hunter.Result; LoadedFrom loadedFrom = hunter.LoadedFrom; Exception exception = hunter.Exception; if (action != null) { CompleteAction(result, action, loadedFrom); } if (additionalActions != null) { foreach (Action <Bitmap, Drawable> additionalAction in additionalActions) { CompleteAction(result, additionalAction, loadedFrom); } } if (m_Listener != null && exception != null) { m_Listener.OnImageLoadFailed(this, uri, exception); } }
void IPicasso <UIImage, UIImage> .Complete(IBitmapHunter <UIImage, UIImage> hunter) { Action <UIImage, UIImage> action = hunter.Action; List <Action <UIImage, UIImage> > actions = hunter.Actions; UIImage result = hunter.Result; LoadedFrom loadedFrom = hunter.LoadedFrom; if (action != null) { CompleteAction(result, action, loadedFrom); } if (actions != null) { foreach (Action <UIImage, UIImage> action_ in actions) { CompleteAction(result, action_, loadedFrom); } } }