ASMultiplexImageNodeDataSource Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | ASMultiplexImageNode.h |
Overview
The ASMultiplexImageNodeDataSource protocol is adopted by an object that provides the multiplex image node, for each image identifier, an image or a URL the image node should load.
– multiplexImageNode:imageForImageIdentifier:
An image for the specified identifier.
- (UIImage *)multiplexImageNode:(ASMultiplexImageNode *)imageNode imageForImageIdentifier:(id)imageIdentifierParameters
imageNode |
The sender. |
|---|---|
imageIdentifier |
The identifier for the image that should be returned. |
Return Value
A UIImage corresponding to imageIdentifier, or nil if none is available.
Discussion
If the image is already available to the data source, this method should be used in lieu of providing the URL to the image via -multiplexImageNode:URLForImageIdentifier:.
Declared In
ASMultiplexImageNode.h
– multiplexImageNode:URLForImageIdentifier:
An image URL for the specified identifier.
- (NSURL *)multiplexImageNode:(ASMultiplexImageNode *)imageNode URLForImageIdentifier:(id)imageIdentifierParameters
imageNode |
The sender. |
|---|---|
imageIdentifier |
The identifier for the image that will be downloaded. |
Return Value
An NSURL for the image identified by imageIdentifier, or nil if none is available.
Discussion
Supported URLs include assets-library, Photo framework URLs (ph://), HTTP, HTTPS, and FTP URLs. If the image is already available to the data source, it should be provided via [ASMultiplexImageNodeDataSource multiplexImageNode:imageForImageIdentifier:] instead.
Declared In
ASMultiplexImageNode.h