For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/lynx-native-api/lynx-generic-resource-fetcher/fetch-stream.md.
Lynx
  • 简体中文
  • fetchStream

    LynxEngine 内部调用此方法以流式方式获取资源内容。

    语法

    Android

    public void fetchStream(LynxResourceRequest request, StreamDelegate delegate);

    参数说明

    • request: 请求所需资源。
    • delegate: 所需资源的流。
    Note
    • 此方法是可选实现的。

    iOS

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

    参数说明

    • request: 请求所需资源。
    • delegate: 所需资源的流。
    Note
    • 此方法是可选实现的。

    Harmony

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

    参数说明

    • request: 以流式方式获取资源内容的请求。
    • delegate: 所需资源的流。

    兼容性

    LCD tables only load in the browser

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。