For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/lynx-native-api/lynx-media-resource-fetcher/fetch-image.md.
Lynx
  • English
  • 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.