---
name: "offDownloadProgressUpdate"
mode: "kit"
versionRequirements:
  - { name: "P2PKit", version: "1.0.0" }
platform:
  - "iOS"
  - "Android"
async: true
title: "ty.p2p.offDownloadProgressUpdate - Stop listening for: Single-file download progress callback"
---

## offDownloadProgressUpdate

> [VERSION] P2PKit >= 1.0.0

> [PLATFORM] iOS, Android

> ⚡ **Supports Promise** — Returns a Promise when success / fail / complete callbacks are omitted.

### Description

single file download progress event

### Parameters

`(listener: Function)`

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `listener` | `(params: DownloadProgressEvent) => void` | Yes | - | Event listener callback function |

### Referenced Types

##### `interface` DownloadProgressEvent

| Property | Type | Since | Description |
| --- | --- | --- | --- |
| `deviceId` | `string` | `1.0.0` | Device ID |
| `fileName` | `string` | `1.0.0` | Filename being downloaded |
| `progress` | `number` | `1.0.0` | Upload/download progress |


### Examples

```tsx
const listener = function (res) { console.log(res) }
ty.p2p.onDownloadProgressUpdate(listener)
ty.p2p.offDownloadProgressUpdate(listener)
```
