fetchTemplate

LynxEngine internally calls this method to obtain the contents of Bundle and Lazy Bundle. The returned result type can contain byte[] or TemplateBundle.

Syntax

Android

public abstract void fetchTemplate(
    LynxResourceRequest request, LynxResourceCallback<TemplateProviderResult> callback);

Parameters

  • request: Request for the requiring content file.
  • callback: Response with the requiring content file: byteArray or TemplateBundle
NOTE
  • This method must be implemented.

iOS

- (void)fetchTemplate:(LynxResourceRequest *_Nonnull)request
           onComplete:(LynxTemplateResourceCompletionBlock _Nonnull)callback;

Parameters

  • request: Request for the requiring content file.
  • callback: Response with the requiring content file: byteArray or TemplateBundle
NOTE
  • This method must be implemented.

Harmony

abstract fetchTemplate(request: LynxResourceRequest, callback: AsyncCallback<TemplateProviderResult>): void;

Parameters

  • request: Request to obtain the contents of Bundle and Lazy Bundle
  • callback: Response with the requiring content file in ArrayBuffer type.

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.