<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@digitalpersona/devices](./devices.md) &gt; [DeviceEvent](./devices.deviceevent.md) &gt; [(constructor)](./devices.deviceevent.(constructor).md)

## DeviceEvent.(constructor)

Constructs a new event.

<b>Signature:</b>

```typescript
constructor(type: string, deviceId: string);
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  type | <code>string</code> | an event type |
|  deviceId | <code>string</code> | a device ID. |

