---
name: "onGroupDpDataChangeEvent"
mode: "kit"
versionRequirements:
  - { name: "DeviceKit", version: "2.3.1" }
  - { name: "@ray-js/ray", version: "0.6.23" }
platform:
  - "iOS"
  - "Android"
async: true
---

## onGroupDpDataChangeEvent

> [VERSION] DeviceKit >= 2.3.1 | @ray-js/ray >= 0.6.23

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

### Referenced Types

##### `interface` GroupDpDataBean

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


### Examples

#### Basic usage

```tsx
import { device } from '@ray-js/ray'

const { onGroupDpDataChangeEvent } = device;

onGroupDpDataChangeEvent((res) => {
  console.log('onGroupDpDataChangeEvent', res);
});
```
