Lynx

onPageStart

Called when page start loading.

Syntax

Android

public void onPageStart(@Nullable String url);

Parameters

  • url: The page URL

iOS

- (void)lynxViewDidStartLoading:(LynxView *)view;

Parameters

  • view: The LynxView instance.
Note
  • This method is called once for each content loading request.

Harmony

public onPageStarted(lynxContext: LynxContext, pipelineInfo: LynxPipelineInfo): void;

Parameters

  • lynxContext: The LynxContext which has started loading
  • pipelineInfo: The information about the pixel pipeline
Note
  • This method will be executed before the main process of lynx so do not execute overlycomplex logic in this method.

Desktop (C++)

class YourViewClient : public lynx::pub::LynxViewClient {
 public:
  void OnPageStart(const char* url) override;
};

Parameters

  • url: The page 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.