smartProgram.systemInfo

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

  1. smartProgram.systemInfo(): Promise<Object>

示例代码

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