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.