---
name: "offGroupDpDataChangeEvent"
mode: "kit"
versionRequirements:
  - { name: "DeviceKit", version: "2.3.1" }
platform:
  - "iOS"
  - "Android"
async: true
---

## offGroupDpDataChangeEvent

> [VERSION] DeviceKit >= 2.3.1

> [PLATFORM] iOS, Android

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

### Description

Group DP change event

### Parameters

`(listener: Function)`

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

### Referenced Types

##### `interface` GroupDpDataBean

| Property | Type | Since | Description |
| --- | --- | --- | --- |
| `groupId` | `string` | `2.3.1` | groupId Group ID |
| `dps` | `Record<string, any>` | `2.3.1` | dp information Example: dps: {"1": true} |


### Examples

#### Demo

```tsx
const listener = function (res) { console.log(res) }
ty.device.onGroupDpDataChangeEvent(listener)
ty.device.offGroupDpDataChangeEvent(listener)
```
