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-generic-resource-fetcher/fetch-stream.md.
Lynx
  • English
  • fetchStream

    LynxEngine internally calls this method to obtain resource content in a streaming manner.

    Syntax

    Android

    public void fetchStream(LynxResourceRequest request, StreamDelegate delegate);

    Parameters

    • request: Request for the requiring resource.
    • delegate: Streaming of the requiring resource.
    Note
    • This method is optional to be implemented.

    iOS

    - (dispatch_block_t)fetchStream:(nonnull LynxResourceRequest *)request
                         withStream:(nonnull id<LynxResourceStreamLoadDelegate>)delegate;

    Parameters

    • request: Request for the requiring resource.
    • delegate: Streaming of the requiring resource.
    Note
    • This method is optional to be implemented.

    Harmony

    fetchStream(request: LynxResourceRequest, delegate: LynxStreamDelegate): void;

    Parameters

    • request: Request to obtain resource content in a streaming manner.
    • delegate: streaming of the requiring resource.

    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.