smartProgram.systemInfo

解释:获取系统信息,同 swan.getSystemInfo。

smartProgram.systemInfo(): Promise<Object>

示例代码:

automator.launch().then(async smartProgram => {
    const systemInfo = await smartProgram.systemInfo();
    console.log(systemInfo.platform);
});