| callback | AsyncCallback<{deviceId: string, pinToken ?: number}> | Yes | Callback used to return the authentication result.|
| callback | AsyncCallback<{deviceId: string, pinToken ?: number}> | Yes | Callback used to return the authentication result.|
| type | string | Yes | Event type. The value **'deviceFound'** indicates an event reported when a device is discovered. |
| callback | Callback<{ subscribeId: number, device: [DeviceInfo](#deviceinfo) }> | No | Callback used to return the device information and state.|
| callback | Callback<{ subscribeId: number, device: [DeviceInfo](#deviceinfo)}> | No | Callback used to return the device information and state.|
**Example**
...
...
@@ -1142,7 +1219,7 @@ Subscribes to device discovery failures.
| type | string | Yes | Event type. The event **'discoverFail'** indicates an event reported when device discovery fails.|
| callback | Callback<{ subscribeId: number, reason: number }> | Yes | Callback used for the device discovery failure. |
| callback | Callback<{ subscribeId: number, reason: number }> | Yes | Callback used for the device discovery failure. |
**Example**
...
...
@@ -1169,7 +1246,7 @@ Unsubscribes from device discovery failures.
| type | string | Yes | Event type. The value **'serviceDie'** indicates an event reported when the **DeviceManager** service is terminated unexpectedly.|
| callback | () => void | Yes | Callback invoked when a dead event of the **DeviceManager** service occurs. |
| callback | () =>void | Yes | Callback invoked when a dead event of the **DeviceManager** service occurs. |
**Example**
...
...
@@ -1332,7 +1409,7 @@ Unsubscribes from dead events of the **DeviceManager** service.
| type | string | Yes | Event type. The value **'serviceDie'** indicates an event reported when the **DeviceManager** service is terminated unexpectedly.|
| callback | () => void | No | Callback used to return the dead event of the **DeviceManager** service. |
| callback | () =>void | No | Callback used to return the dead event of the **DeviceManager** service. |