Lynx

CustomizedMessage

封装待发送的调试消息。

关于如何发送调试消息,请参考 sendMessage

语法

iOS

CustomizedMessage.h
@interface CustomizedMessage : NSObject

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

@end

Android

CustomizedMessage.java
public class CustomizedMessage {
  public CustomizedMessage(String type, String data);
}

参数说明

  • type: 要发送的消息类型。如 CDP 或其他自定义消息类型。
  • data: 要发送的消息数据。

兼容性

LCD tables only load in the browser

除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。