publicabstractclassLynxGenericResourceFetcher{/**
* fetch resource with contents.
*
* @param request
* @param callback contents of the requiring resource.
*/publicabstractvoidfetchResource(LynxResourceRequest request,LynxResourceCallback<byte[]> callback);/**
* fetch resource with res path.
*
* @param request
* @param callback path on the disk of the requiring resource.
*/publicabstractvoidfetchResourcePath(LynxResourceRequest request,LynxResourceCallback<String> callback);/**
* fetch resource with stream.
*
* @param request
* @param delegate streaming of the requiring resource.
*/publicvoidfetchStream(LynxResourceRequest request,StreamDelegate delegate){};/**
* cancel the request of the requiring resource.
*
* @param request the requiring request.
*/publicvoidcancel(LynxResourceRequest request){};}
@protocol LynxGenericResourceFetcher <NSObject>/**
* fetch resource with contents.
*
* @param request.
* @param callback contents of the requiring resource.
*
* @return: A block which can cancel the image request if it is not finished. nil if cancel action
* is not supported.
*/@required
-(dispatch_block_t)fetchResource:(nonnull LynxResourceRequest *)request
onComplete:(LynxGenericResourceCompletionBlock _Nonnull)callback;/**
* fetch resource with res path.
*
* @param request
* @param callback path on the disk of the requiring resource.
*
* @return: A block which can cancel the image request if it is not finished. nil if cancel action
* is not supported.
*/@required
-(dispatch_block_t)fetchResourcePath:(nonnull LynxResourceRequest *)request
onComplete:(LynxGenericResourcePathCompletionBlock _Nonnull)callback;/**
* fetch resource with stream.
*
* @param request
* @param delegate streaming of the requiring resource.
*
* @return: A block which can cancel the image request if it is not finished. nil if cancel action
* is not supported.
*/@optional
-(dispatch_block_t)fetchStream:(nonnull LynxResourceRequest *)request
withStream:(nonnull id<LynxResourceStreamLoadDelegate>)delegate;@end
Tip: you can click/tap on a cell for more information.
Full support
Full support
No support
No support
Non-standard. Check cross-browser support before using.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.