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/is-local-resource.md.
Lynx
  • English
  • isLocalResource

    LynxEngine internally calls this method to determine whether the resource path exists on disk.

    Syntax

    Android

    public OptionalBool isLocalResource(String url);

    Parameters

    • url: Input path.

    Return

    • TRUE if is a local path, FALSE if not a local path and UNDEFINED if not sure.
    Note
    • This method is optional to be implemented.

    iOS

    - (LynxResourceOptionalBool)isLocalResource:(NSURL *_Nonnull)url;

    Parameters

    • url: Input path.

    Return

    • TRUE if is a local path, FALSE if not a local path and UNDEFINED if not sure.
    Note
    • This method is optional to be implemented.

    Harmony

    isLocalResource(url: string): LynxOptionalBool;

    Parameters

    • url: Input path.

    Return

    • TRUE if is a local path, FALSE if not a local path, UNDEFINED if not sure.

    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.