Lynx

fetchImage

LynxEngine will use this method to obtain the bitmap information of the image, and the return content must be of Closeable type.

Syntax

Android

public void fetchImage(LynxResourceRequest request, LynxResourceCallback<Closeable> callback);

Parameters

  • request: Request for the resource.
  • callback: Response with the needed drawable.
Note
  • This method is optional to be implemented.

iOS

- (dispatch_block_t)fetchUIImage:(LynxResourceRequest *_Nonnull)request
                      onComplete:(LynxMediaResourceCompletionBlock _Nonnull)response;

Parameters

  • request: Request for the resource.
  • response: Response with the needed drawable.
Note
  • This method is optional to be implemented.

Compatibility

LCD tables only load in the browser

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.