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-devtool-native-api/lynx-base-inspector-owner/send-message.md.
Lynx
  • English
  • sendMessage

    Sends a debugging message of a specified type to the communication peer (e.g., the DevTool Desktop Application).

    It works with the subscribeMessage method to enable two-way communication.

    Syntax

    iOS

    LynxBaseInspectorOwnerNG.h
    - (void)sendMessage:(nonnull CustomizedMessage *)message;

    Parameters

    Android

    LynxBaseInspectorOwnerNG.java
    void sendMessage(CustomizedMessage message);

    Parameters

    Harmony

    LynxBaseInspectorOwner.ets
    sendMessage(type: string, message: string): void;

    Parameters

    • type: The type of message to send, such as CDP or other custom message types.
    • message: The message data to send.

    Usage Example

    Please refer to subscribeMessage.

    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.