> For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt.

# CustomizedMessage

APISummary
封装待发送的调试消息。

关于如何发送调试消息，请参考 [`sendMessage`](/next/zh/api/lynx-devtool-native-api/lynx-base-inspector-owner/send-message.md)。

## 语法

### iOS

```objective-c title="CustomizedMessage.h"
@interface CustomizedMessage : NSObject

@property(nonatomic, readwrite) NSString *type;
@property(nonatomic, readwrite) NSString *data;

@end
```

### Android

```java title="CustomizedMessage.java"
public class CustomizedMessage {
  public CustomizedMessage(String type, String data);
}
```

### 参数说明

- `type`: 要发送的消息类型。如 [CDP](https://chromedevtools.github.io/devtools-protocol/) 或其他自定义消息类型。
- `data`: 要发送的消息数据。

## 兼容性

**Compatibility Table**

**Query:** `lynx-devtool-native-api.customized-message`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-devtool-native-api/customized-message.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| customized-message | Yes (3.0) | No | Yes (3.0) | Unknown | Unknown | No |

**`customized-message`**

CustomizedMessage

