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/send-global-event.md.
Lynx
  • English
  • sendGlobalEvent

    Send global events to the front end through the client, and the front end can listen to the event through GlobalEventEmitter.

    Syntax

    Android

    public void sendGlobalEvent(String name, JavaOnlyArray params);

    Parameters

    • name: Global event name.
    • params: Parameters carried by global events.

    iOS

    - (void)sendGlobalEvent:(nonnull NSString *)name withParams:(nullable NSArray *)params;

    Parameters

    • name: Global event name.
    • params: Parameters carried by global events.

    Web

    sendGlobalEvent(eventName: string, params: Cloneable[]): void;

    Parameters

    • eventName: Global event name.
    • params: Parameters carried by global events.

    Desktop (C++)

    void SendGlobalEvent(const std::string& name, const std::string& json);

    Parameters

    • name: Global event name.
    • json: The event payload serialized as a JSON string.

    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.