LynxInspectorConsoleDelegate
一个协议(或接口),用于接收 LynxView 实例的所有 console 消息。
Info
目前仅支持获取使用 PrimJS 引擎时的 BTS console 消息。
语法
实现 LynxInspectorConsoleDelegate 协议(或接口),通过 onConsoleMessage 方法接收 console 消息。
iOS
LynxInspectorConsoleDelegate.h
Android
LynxInspectorConsoleDelegate.java
Harmony
LynxInspectorConsoleDelegate.ets
数据格式
所有数据均为 JSON 格式的字符串。
对于 Object 类型数据,只包含该 Object 的基本信息,可以通过 getConsoleObject 来进一步获取详细数据。