-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add new networking image delegate method when image does not load from cache #1590
add new networking image delegate method when image does not load from cache #1590
Conversation
…mama/Texture into networkingImageNodeDelegateUpdate # Conflicts: # Source/ASNetworkImageNode.mm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This still doesn't cover the case in which the cache load was cancelled. From our offline discussion, I think agreed to not add this API but address the root cause (multiple cache loads are executed with the same URL) instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, this is a slightly different issue. This new API allows clients to know when the node failed to load from cache without having to infer/guess from -imageNodeWillLoadImageFromNetwork:
.
…mama/Texture into networkingImageNodeDelegateUpdate
…mama/Texture into networkingImageNodeDelegateUpdate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now.
There is a missing delegate when image cannot load from cache.