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.