For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/lynx-native-api/lynx-view-client/on-page-start.md.
Lynx
  • English
  • 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.