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-media-resource-fetcher/should-redirect-url.md.
Lynx
  • English
  • shouldRedirectUrl

    LynxEngine redirects the image path by calling this method internally, and the return result is required to be of String type

    Syntax

    Android

    public abstract String shouldRedirectUrl(LynxResourceRequest request);

    Parameters

    • request: Request for the resource.
    • callback: The target url.
    Note
    • This method must be implemented.

    iOS

    - (NSString *_Nonnull)shouldRedirectUrl:(LynxResourceRequest *_Nonnull)request;

    Parameters

    • request: Request for the resource.
    • callback: The target url.
    Note
    • This method must be implemented.

    Harmony

    abstract shouldRedirectUrl(request: LynxResourceRequest): string;

    Parameters

    • request: Request to be redirected.

    Return

    • The target url.

    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.