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-resource-path.md.
Lynx
  • English
  • fetchResourcePath

    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

    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

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

    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++)

    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

    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.