Skip to content

Commit

Permalink
docs: update 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode committed Aug 31, 2023
1 parent 639d1bd commit a0ceec7
Show file tree
Hide file tree
Showing 22 changed files with 472 additions and 498 deletions.
48 changes: 6 additions & 42 deletions docs/apis/ad/InterstitialAd.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ sidebar_label: InterstitialAd
> [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/InterstitialAd.offClose.html)
```tsx
(callback: OffCloseCallback) => void
(callback: OnCloseCallback) => void
```

| 参数 | 类型 |
| --- | --- |
| callback | `OffCloseCallback` |
| callback | `OnCloseCallback` |

### offError

Expand All @@ -46,12 +46,12 @@ sidebar_label: InterstitialAd
> [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/InterstitialAd.offError.html)
```tsx
(callback: OffErrorCallback) => void
(callback: OnErrorCallback) => void
```

| 参数 | 类型 |
| --- | --- |
| callback | `OffErrorCallback` |
| callback | `OnErrorCallback` |

### offLoad

Expand All @@ -62,12 +62,12 @@ sidebar_label: InterstitialAd
> [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/InterstitialAd.offLoad.html)
```tsx
(callback: OffLoadCallback) => void
(callback: OnLoadCallback) => void
```

| 参数 | 类型 |
| --- | --- |
| callback | `OffLoadCallback` |
| callback | `OnLoadCallback` |

### onClose

Expand Down Expand Up @@ -155,42 +155,6 @@ sidebar_label: InterstitialAd

## 参数

### OffCloseCallback

插屏广告关闭事件的回调函数

```tsx
(res: TaroGeneral.CallbackResult) => void
```

| 参数 | 类型 |
| --- | --- |
| res | `TaroGeneral.CallbackResult` |

### OffErrorCallback

插屏错误事件的回调函数

```tsx
(res: TaroGeneral.CallbackResult) => void
```

| 参数 | 类型 |
| --- | --- |
| res | `TaroGeneral.CallbackResult` |

### OffLoadCallback

插屏广告加载事件的回调函数

```tsx
(res: TaroGeneral.CallbackResult) => void
```

| 参数 | 类型 |
| --- | --- |
| res | `TaroGeneral.CallbackResult` |

### OnCloseCallback

插屏广告关闭事件的回调函数
Expand Down
48 changes: 6 additions & 42 deletions docs/apis/ad/RewardedVideoAd.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ sidebar_label: RewardedVideoAd
> [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/RewardedVideoAd.offClose.html)
```tsx
(callback: OffCloseCallback) => void
(callback: OnCloseCallback) => void
```

| 参数 | 类型 |
| --- | --- |
| callback | `OffCloseCallback` |
| callback | `OnCloseCallback` |

### offError

Expand All @@ -70,12 +70,12 @@ sidebar_label: RewardedVideoAd
> [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/RewardedVideoAd.offError.html)
```tsx
(callback: OffErrorCallback) => void
(callback: OnErrorCallback) => void
```

| 参数 | 类型 |
| --- | --- |
| callback | `OffErrorCallback` |
| callback | `OnErrorCallback` |

### offLoad

Expand All @@ -86,12 +86,12 @@ sidebar_label: RewardedVideoAd
> [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/RewardedVideoAd.offLoad.html)
```tsx
(callback: OffLoadCallback) => void
(callback: OnLoadCallback) => void
```

| 参数 | 类型 |
| --- | --- |
| callback | `OffLoadCallback` |
| callback | `OnLoadCallback` |

### onClose

Expand Down Expand Up @@ -156,42 +156,6 @@ sidebar_label: RewardedVideoAd
| --- | --- | --- |
| isEnded | `boolean` | 视频是否是在用户完整观看的情况下被关闭的 |

### OffCloseCallback

用户点击 `关闭广告` 按钮的事件的回调函数

```tsx
(res: TaroGeneral.CallbackResult) => void
```

| 参数 | 类型 |
| --- | --- |
| res | `TaroGeneral.CallbackResult` |

### OffErrorCallback

激励视频错误事件的回调函数

```tsx
(res: TaroGeneral.CallbackResult) => void
```

| 参数 | 类型 |
| --- | --- |
| res | `TaroGeneral.CallbackResult` |

### OffLoadCallback

激励视频广告加载事件的回调函数

```tsx
(res: TaroGeneral.CallbackResult) => void
```

| 参数 | 类型 |
| --- | --- |
| res | `TaroGeneral.CallbackResult` |

### OnCloseCallback

用户点击 `关闭广告` 按钮的事件的回调函数
Expand Down
30 changes: 9 additions & 21 deletions docs/apis/ai/inference/InferenceSession.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ sidebar_label: InferenceSession
> [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/inference/InferenceSession.offError.html)
```tsx
(callback?: OffErrorCallback) => void
(callback?: OnErrorCallback) => void
```

| 参数 | 类型 |
| --- | --- |
| callback | `OffErrorCallback` |
| callback | `OnErrorCallback` |

### offLoad

Expand All @@ -42,12 +42,12 @@ sidebar_label: InferenceSession
> [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/inference/InferenceSession.offLoad.html)
```tsx
(callback?: OffLoadCallback) => void
(callback?: OnLoadCallback) => void
```

| 参数 | 类型 |
| --- | --- |
| callback | `OffLoadCallback` |
| callback | `OnLoadCallback` |

### onError

Expand All @@ -58,12 +58,12 @@ sidebar_label: InferenceSession
> [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/inference/InferenceSession.onError.html)
```tsx
(callback: OnLoadCallback) => void
(callback: OnErrorCallback) => void
```

| 参数 | 类型 |
| --- | --- |
| callback | `OnLoadCallback` |
| callback | `OnErrorCallback` |

### onLoad

Expand Down Expand Up @@ -117,21 +117,9 @@ sidebar_label: InferenceSession
| --- | --- |
| __index | `__index` |

### OffErrorCallback
### OnErrorCallback

模型加载失败回调函数。

```tsx
(res: TaroGeneral.CallbackResult) => void
```

| 参数 | 类型 |
| --- | --- |
| res | `TaroGeneral.CallbackResult` |

### OffLoadCallback

模型加载完成回调函数
模型加载失败回调函数

```tsx
(res: TaroGeneral.CallbackResult) => void
Expand All @@ -143,7 +131,7 @@ sidebar_label: InferenceSession

### OnLoadCallback

模型加载失败回调函数
模型加载完成回调函数

```tsx
(res: TaroGeneral.CallbackResult) => void
Expand Down
Loading

0 comments on commit a0ceec7

Please sign in to comment.