---
name: "offUploadProgressUpdate"
mode: "kit"
versionRequirements:
  - { name: "BizKit", version: "3.0.0" }
platform:
  - "iOS"
async: true
title: "offUploadProgressUpdate - 移除监听：上传进度回调"
---

## offUploadProgressUpdate

> [VERSION] BizKit >= 3.0.0

> [PLATFORM] iOS

> ⚡ **支持 Promise 调用** — 不传 success / fail / complete 回调时，该方法返回 Promise。

### 描述

监听图片或视频上传进度变化，取消监听请调用 offUploadProgressUpdate

### 参数

`(listener: Function)`

| 参数 | 类型 | 必填 | 默认值 | 描述 |
| --- | --- | --- | --- | --- |
| `listener` | `(params: ProgressEvent) => void` | 是 | - | 事件监听回调函数 |

### 引用对象

##### `interface` ProgressEvent

| 属性 | 类型 | 最低版本 | 描述 |
| --- | --- | --- | --- |
| `filePath` | `string` | `3.0.0` | 文件路径 |
| `progress` | `number` | `3.0.0` | 上传进度百分比，取值范围 0-100 返回示例：progress: 100 |


### 示例代码

```tsx
const listener = function (res) { console.log(res) }
ty.onUploadProgressUpdate(listener)
ty.offUploadProgressUpdate(listener)
```
