用于获取系统设置信息(同步接口);
字段 |
类型 |
描述 |
deviceOrientation |
string |
屏幕方向(portrait:竖屏/landscape:横屏) |
1 2 3 4 5 6 7 8 9 | // 异步调用方式 const listener = function (res) { console.log(res) } my.getSystemSetting(listener); // 同步调用方式 const ret = my.getSystemSettingSync(); |