Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
获取设备类型。
getDeviceType(): Promise<number>;
Promise<number>
0
1
2
3
4
5
import { PluginManager } from 'sn-plugin-lib'; /** * 获取设备类型的示例。 */ export async function exampleGetDeviceType() { const deviceType = await PluginManager.getDeviceType(); return deviceType; }