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

# removeLynxViewClient

APISummary
与 `addLynxViewClient` 相对应，移除 `LynxView` 生命周期事件监听。

## 语法

### Android

```java
public void removeLynxViewClient(LynxViewClient client);
```

#### 参数说明

- `client`: 客户端实现的结构，并注册给 `LynxView` 实例，用于获取 `LynxView` 生命周期各流程回调。

### Desktop (C++)

```cpp
void RemoveClient(std::shared_ptr<lynx::pub::LynxViewClient> client);
```

#### 参数说明

- `client`: 此前通过 `AddClient` 注册的生命周期监听对象。传入同一个 shared client 实例会将其从 `LynxView` 生命周期监听列表中移除。

## 兼容性

**Compatibility Table**

**Query:** `lynx-native-api.lynx-view.remove-lynx-view-client`

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

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| remove-lynx-view-client | Yes (1.0) | No | Yes (1.0) | Yes (3.7) | Yes (3.7) | No |

**`remove-lynx-view-client`**

remove lifecycle observer of lynxView

**Specifications:**

