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

# addLynxBackgroundRuntimeClient

APISummary
Register lifecycle event listeners for `LynxBackgroundRuntime`.

## Syntax

### Android

```java
public void addLynxBackgroundRuntimeClient(LynxBackgroundRuntimeClient client);
```

#### Parameters

- `client`: The client implementation registered to the `LynxBackgroundRuntime` instance for receiving lifecycle callbacks.

### iOS

```objc
- (void)addLifecycleClient:(nonnull id<LynxBackgroundRuntimeLifecycle>)lifecycleClient;
```

#### Parameters

- `lifecycleClient`: The client implementation registered to the `LynxBackgroundRuntime` instance for receiving lifecycle callbacks.

### Harmony

```ts
public addLifecycleClient(client: LynxBackgroundRuntimeClient): void;
```

#### Parameters

- `client`: The client implementation registered to the `LynxBackgroundRuntime` instance for receiving lifecycle callbacks.

## Compatibility

**Compatibility Table**

**Query:** `lynx-native-api.lynx-background-runtime.add-lynx-background-runtime-client`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-native-api/lynx-background-runtime/add-lynx-background-runtime-client.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| add-lynx-background-runtime-client | Yes (3.1) | Yes (3.4) | Yes (3.1) | No | No | No |

**`add-lynx-background-runtime-client`**

register lifecycle observer for background runtime

**Specifications:**

