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

## offBLEScanBindDevice

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

> [PLATFORM] iOS, Android

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

### Description

Notify when a device is discovered

### Parameters

`(listener: Function)`

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

### Referenced Types

##### `interface` ThingBLEScanDeviceEvent

| Property | Type | Since | Description |
| --- | --- | --- | --- |
| `deviceId` | `string` | `3.0.0` | Discovered device ID |


### Examples

#### Basic usage

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

const { offBLEScanBindDevice } = device;

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