> 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.

# onLoadSuccess

APISummary
页面加载完成时调用。

## 语法

### Android

```java
public void onLoadSuccess();
```

### iOS

```objc
- (void)lynxView:(LynxView *)view didLoadFinishedWithUrl:(NSString *)url;
```

#### 参数

- `view`: LynxView 实例。
- `url`: 页面 URL。

:::note

- 每个内容加载请求都会调用一次此方法。

:::

### Harmony

```typescript
public onLoadSuccess(url: string): void;
```

#### 参数

- `url`: 页面 URL。

### Desktop (C++)

```cpp
class YourViewClient : public lynx::pub::LynxViewClient {
 public:
  void OnLoadSuccess() override;
};
```

## 兼容性

**Compatibility Table**

**Query:** `lynx-native-api.lynx-view-client.on-load-success`

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

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| on-load-success | Yes (1.0) | Yes (3.4) | Yes (1.0) | Yes (3.7) | Yes (3.7) | No |

**`on-load-success`**

Called when page load finish.

**Specifications:**

