AXNetworkIntegrationDelegate
protocol AXNetworkIntegrationDelegate : AnyObject, NSObjectProtocol
AXNetworkIntegrationDelegate
-
Called when a
AXPhoto
successfully finishes loading.Note
This method is expected to be called on a background thread. Be mindful of this when retrieving items from a memory cache.Declaration
Swift
func networkIntegration(_ networkIntegration: AXNetworkIntegrationProtocol, loadDidFinishWith photo: AXPhotoProtocol)
Parameters
networkIntegration
The
NetworkIntegration
that was performing the load.photo
The related
Photo
. -
Called when a
AXPhoto
fails to load.Note
This method is expected to be called on a background thread.Declaration
Swift
func networkIntegration(_ networkIntegration: AXNetworkIntegrationProtocol, loadDidFailWith error: Error, for photo: AXPhotoProtocol)
Parameters
networkIntegration
The
NetworkIntegration
that was performing the load.error
The error that the load failed with.
photo
The related
Photo
. -
Called when a
AXPhoto
‘s loading progress is updated.Note
This method is expected to be called on a background thread.Declaration
Swift
func networkIntegration(_ networkIntegration: AXNetworkIntegrationProtocol, didUpdateLoadingProgress progress: CGFloat, for photo: AXPhotoProtocol)