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/cancel.md.
Lynx
  • English
  • cancel

    Cancel the request of the requiring resource.

    Syntax

    Android

    public void cancel(LynxResourceRequest request);

    Parameters

    • request: the requiring request.
    Note
    • This method is optional to be implemented.

    Harmony

    abstract cancel(request: LynxResourceRequest): void;

    Parameters

    • request: Request to be canceled.

    Desktop (C++)

    Desktop public API cancels a resource fetch by request ID:

    virtual void Cancel(lynx_resource_request_id request_id);

    Parameters

    • request_id: The ID of the request to cancel.

    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.