Output

constructor(cacheResponse: CacheResponse)

Create an output that will use cacheResponse as the image source.


constructor(networkRequest: NetworkRequest)

Create an output that will execute networkRequest and use the response body as the image source.


constructor(cacheResponse: CacheResponse, networkRequest: NetworkRequest)

Create an output that will execute networkRequest and use cacheResponse as the image source if the response code is 304 (not modified). Else, the network request's response body will be used as the image source.