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

# setLynxInspectorConsoleDelegate

APISummary
Registers a console listener for a `LynxView` instance to listen for all console messages from that instance.

## Syntax

### iOS

```objective-c title="LynxBaseInspectorOwner.h"
- (void)setLynxInspectorConsoleDelegate:(id _Nonnull)delegate;
```

### Android

```java title="LynxBaseInspectorOwner.java"
void setLynxInspectorConsoleDelegate(Object delegate);
```

### Harmony

```ts title="LynxBaseInspectorOwner.ets"
setLynxInspectorConsoleDelegate(delegate: LynxInspectorConsoleDelegate): void;
```

### Parameters

- `delegate`: An object that implements [`LynxInspectorConsoleDelegate`](/next/api/lynx-devtool-native-api/lynx-inspector-console-delegate.md#syntax).

## Usage Example

Please refer to [`LynxInspectorConsoleDelegate`](/next/api/lynx-devtool-native-api/lynx-inspector-console-delegate.md#usage-example).

## Compatibility


**Compatibility Table**
**Query:** `lynx-devtool-native-api.lynx-base-inspector-owner.set-lynx-inspector-console-delegate`

**Platform Support**

| Platform | Version Added | Notes |
|----------|---------------|-------|
| Android | 3.0 | - |
| iOS | 3.0 | - |
| HarmonyOS | 3.5 | - |
| Web | ❌ No | - |

**Description:** setLynxInspectorConsoleDelegate

