> ## 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

> 获取设备类型。

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

**返回**

* `Promise<number>`：设备类型：`0` A5，`1` A6，`2` A6X，`3` A5X，`4` Nomad，`5` Manta

## 示例

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

/**
 * 获取设备类型的示例。
 */
export async function exampleGetDeviceType() {
  const deviceType = await PluginManager.getDeviceType();
  return deviceType;
}
```
