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

## offGroupInfoChange

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

> [PLATFORM] iOS, Android

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

### Description

Add/remove device in group event

### Parameters

`(listener: Function)`

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `listener` | `(params: GroupInfoResponse) => void` | Yes | - |  |

### Referenced Types

##### `interface` GroupInfoResponse

| Property | Type | Since | Description |
| --- | --- | --- | --- |
| `groupId` | `string` | `2.4.0` | groupId Group ID |


### Examples

#### Basic usage

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

const { offGroupInfoChange } = device;

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