ASMultiplexImageNodeDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | ASMultiplexImageNode.h |
Overview
The methods declared by the ASMultiplexImageNodeDelegate protocol allow the adopting delegate to respond to notifications such as began, progressed and finished downloading, updated and displayed an image.
– multiplexImageNode:didStartDownloadOfImageWithIdentifier:
Notification that the image node began downloading an image.
- (void)multiplexImageNode:(ASMultiplexImageNode *)imageNode didStartDownloadOfImageWithIdentifier:(id)imageIdentifier
Parameters
imageNode |
The sender. |
---|---|
imageIdentifier |
The identifier for the image that is downloading. |
Declared In
ASMultiplexImageNode.h
– multiplexImageNode:didUpdateDownloadProgress:forImageWithIdentifier:
Notification that the image node’s download progressed.
- (void)multiplexImageNode:(ASMultiplexImageNode *)imageNode didUpdateDownloadProgress:(CGFloat)downloadProgress forImageWithIdentifier:(ASImageIdentifier)imageIdentifier
Parameters
imageNode |
The sender. |
---|---|
downloadProgress |
The progress of the download. Value is between 0.0 and 1.0. |
imageIdentifier |
The identifier for the image that is downloading. |
Declared In
ASMultiplexImageNode.h
– multiplexImageNode:didFinishDownloadingImageWithIdentifier:error:
Notification that the image node’s download has finished.
- (void)multiplexImageNode:(ASMultiplexImageNode *)imageNode didFinishDownloadingImageWithIdentifier:(ASImageIdentifier)imageIdentifier error:(nullable NSError *)error
Parameters
imageNode |
The sender. |
---|---|
imageIdentifier |
The identifier for the image that finished downloading. |
error |
The error that occurred while downloading, if one occurred; nil otherwise. |
Declared In
ASMultiplexImageNode.h
– multiplexImageNode:didUpdateImage:withIdentifier:fromImage:withIdentifier:
Notification that the image node’s image was updated.
- (void)multiplexImageNode:(ASMultiplexImageNode *)imageNode didUpdateImage:(nullable UIImage *)image withIdentifier:(nullable ASImageIdentifier)imageIdentifier fromImage:(nullable UIImage *)previousImage withIdentifier:(nullable ASImageIdentifier)previousImageIdentifier
Parameters
imageNode |
The sender. |
---|---|
image |
The new image, ready for display. |
imageIdentifier |
The identifier for |
previousImage |
The old, previously-loaded image. |
previousImageIdentifier |
The identifier for |
Discussion
Note: This method does not indicate that image
has been displayed.
Declared In
ASMultiplexImageNode.h
– multiplexImageNode:didDisplayUpdatedImage:withIdentifier:
Notification that the image node displayed a new image.
- (void)multiplexImageNode:(ASMultiplexImageNode *)imageNode didDisplayUpdatedImage:(nullable UIImage *)image withIdentifier:(nullable ASImageIdentifier)imageIdentifier
Parameters
imageNode |
The sender. |
---|---|
image |
The new image, now being displayed. |
imageIdentifier |
The identifier for |
Discussion
This method is only called when image
changes, and not on subsequent redisplays of the same image.
Declared In
ASMultiplexImageNode.h
– multiplexImageNodeDidFinishDisplay:
Notification that the image node finished displaying an image.
- (void)multiplexImageNodeDidFinishDisplay:(ASMultiplexImageNode *)imageNode
Parameters
imageNode |
The sender. |
---|
Discussion
This method is called every time an image is displayed, whether or not it has changed.
Declared In
ASMultiplexImageNode.h