fetchStream

LynxEngine internally calls this method to obtain resource content in a streaming manner.

Syntax

Android

public void fetchStream(LynxResourceRequest request, StreamDelegate delegate);

Parameters

  • request: Request for the requiring resource.
  • delegate: Streaming of the requiring resource.
NOTE
  • This method is optional to be implemented.

iOS

- (dispatch_block_t)fetchStream:(nonnull LynxResourceRequest *)request
                     withStream:(nonnull id<LynxResourceStreamLoadDelegate>)delegate;

Parameters

  • request: Request for the requiring resource.
  • delegate: Streaming of the requiring resource.
NOTE
  • This method is optional to be implemented.

Harmony

fetchStream(request: LynxResourceRequest, delegate: LynxStreamDelegate): void;

Parameters

  • request: Request to obtain resource content in a streaming manner.
  • delegate: streaming of the requiring resource.

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.