Promise<number>:设备类型:0A5,1A6,2A6X,3A5X,4Nomad,5Manta
PluginManager
getDeviceType
获取设备类型。
Documentation Index
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 A5,1 A6,2 A6X,3 A5X,4 Nomad,5 Mantaimport { PluginManager } from 'sn-plugin-lib';
/**
* 获取设备类型的示例。
*/
export async function exampleGetDeviceType() {
const deviceType = await PluginManager.getDeviceType();
return deviceType;
}