# PINRemoteImageManagerAlternateRepresentationProvider Protocol Reference

Conforms to | NSObject
Declared in | PINAlternateRepresentationProvider.h

### `– alternateRepresentationWithData:options:` required method

This method will be called with data off the wire or stored in the cache. Return an object to have it returned as the alternativeRepresentation object in the PINRemoteImageManagerResult. @warning this method can be called on the main thread, be careful of doing expensive work.

`- (id)alternateRepresentationWithData:(NSData *)data options:(PINRemoteImageManagerDownloadOptions)options`

#### Discussion

This method will be called with data off the wire or stored in the cache. Return an object to have it returned as the alternativeRepresentation object in the PINRemoteImageManagerResult. @warning this method can be called on the main thread, be careful of doing expensive work.

#### Declared In

`PINAlternateRepresentationProvider.h`