LynxInspectorConsoleDelegate
A protocol (or interface) used to receive all Console messages from a LynxView instance.
Currently, it only supports getting BTS Console messages when using the PrimJS engine.
Syntax
Implement LynxInspectorConsoleDelegate protocol (or interface) and receive Console messages through the onConsoleMessage method.
iOS
Android
Harmony
Data Format
All data is in the form of a JSON formatted string.
For Object type data, only the basic information of the Object is included. You can use getConsoleObject to get more detailed data.
onConsoleMessage
argument
Example
The code above will trigger the onConsoleMessage event, and the event data is as follows:
Take the objectId field from the second argument and call the getConsoleObject method.
When needStringify is false, the returned data is as follows:
When needStringify is true, the returned data is as follows:
Usage Example
Implementation Steps
- Implement
LynxInspectorConsoleDelegate. - Get the
LynxBaseInspectorOwnerinstance. - Register
LynxInspectorConsoleDelegate. - Get detailed Object information.
Code Example
iOS
Android
Harmony
Compatibility
LCD tables only load in the browser