> ## Documentation Index
> Fetch the complete documentation index at: https://docs.supernote.com/llms.txt
> Use this file to discover all available pages before exploring further.

# getDeviceType

> Get devicetype.

```ts theme={null}
getDeviceType(): Promise<number>;
```

**Returns**

* `Promise<number>`:devicetype:`0` A5,`1` A6,`2` A6X,`3` A5X,`4` Nomad,`5` Manta

## Example

```ts wrap theme={null}
import { PluginManager } from 'sn-plugin-lib';

/**
 * Get devicetype example.
 */
export async function exampleGetDeviceType() {
 const deviceType = await PluginManager.getDeviceType();
 return deviceType;
}
```
