getConsoleObject
For Object type Console messages, this method can be used to retrieve its detailed information.
To learn how to obtain this data, please refer to LynxInspectorConsoleDelegate.
Syntax
iOS
LynxBaseInspectorOwner.h
Android
LynxBaseInspectorOwner.java
Harmony
LynxBaseInspectorOwner.ets
Parameters
objectId: The unique identifier of the Object to be retrieved. Please refer toobjectId.stringify/needStringify: Whether the Object needs to be serialized into a string.- If
true, it is equivalent to calling theJSON.stringifymethod. - If
false, it returns only the top-level properties of the Object (non-recursive). If a property's value is another Object, only its basic information is returned. You must call this method again with the newobjectIdto retrieve its internal properties.
- If
handler/callback: A callback function that receives the result as a single String parameter.
Data Format
All data is in the form of a JSON formatted string.
-
If
needStringifyistrue: Returns the complete serialized JSON string of the Object. -
If
needStringifyisfalse: Returns the top-level properties of the Object (non-recursive). It is an array, and the format of each element is as follows:
Example
Please refer to LynxInspectorConsoleDelegate.
Usage Example
Please refer to LynxInspectorConsoleDelegate.
Compatibility
LCD tables only load in the browser