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

# fetchResourcePath

APISummary
`LynxEngine` internally calls this method to obtain the path of the common resource on the local disk, and the return result is required to be of `String` type.

## Syntax

### Android

```java
public abstract void fetchResourcePath(
    LynxResourceRequest request, LynxResourceCallback<String> callback);
```

#### Parameters

- `request`: Request for the requiring resource.
- `callback`: Path on the disk of the requiring resource.

:::note

- This method must be implemented.

:::

### iOS

```objc
- (dispatch_block_t)fetchResourcePath:(nonnull LynxResourceRequest *)request
                           onComplete:(LynxGenericResourcePathCompletionBlock _Nonnull)callback;
```

#### Parameters

- `request`: Request for the requiring resource.
- `callback`: Path on the disk of the requiring resource.

:::note

- This method must be implemented.

:::

### Harmony

```typescript
abstract fetchResourcePath(request: LynxResourceRequest, callback: AsyncCallback<string>): void;
```

#### Parameters

- `request`: Request to obtain the path of the common resource on the local disk.
- `callback`: with path on the disk of the requiring resource.

### Desktop (C++)

```cpp
virtual void FetchResourcePath(
    std::shared_ptr<lynx::pub::LynxResourceRequest> request,
    std::shared_ptr<lynx::pub::LynxResourceResponse> response);
```

#### Parameters

- `request`: Request for the resource path being fetched.
- `response`: Response object to be populated by the host.

## Compatibility

**Compatibility Table**

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

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

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

**`fetch-resource-path`**

LynxEngine internally calls this method to obtain the path of the common resource on the local disk, and the return result is required to be of String type.

**Specifications:**

