> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# fetchStream

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

## Syntax

### Android

```java
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

```objc
- (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

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

#### Parameters

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

## Compatibility

**Compatibility Table**

**Query:** `lynx-native-api.lynx-generic-resource-fetcher.fetch-stream`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-native-api/lynx-generic-resource-fetcher/fetch-stream.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| fetch-stream | Yes (2.8) | Yes (3.4) | Yes (2.8) | No | No | No |

**`fetch-stream`**

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

**Specifications:**

