设置屏幕旋转
属性 | 类型 | 含义 | 默认 | 必须 | APP版本 |
---|---|---|---|---|---|
mode | string | 旋转模式,auto: 自动横竖屏 | landscape: 横屏 | portrait: 竖屏 | 是 |
属性 | 类型 | 含义 | APP版本 |
---|---|---|---|
code | string | 200:成功 | 404:失败 | |
msg | string | 响应信息 | |
data | unknown | 响应数据 |
import { setScreenOrientation } from '@suplink/jssdk';
setScreenOrientation({ mode: 'auto' }).then((res) => console.log(res))