# Function: setWindowSize
▸ setWindowSize(params
: SetWindowSizeParams): Promise‹SetWindowSizeRes›
设置窗口大小,该接口仅适用于 PC 平台,使用细则请参见指南
# 参数:
属性 | 类型 |
---|---|
params | SetWindowSizeParams |
SetWindowSizeParams
属性 | 类型 | 描述 |
---|---|---|
height | number | 窗口高度,以像素为单位 |
width | number | 窗口宽度,以像素为单位 |
complete? | Method | 接口调用结束的回调函数(调用成功、失败都会执行) |
fail? | Method | 接口调用失败的回调函数 |
success? | Method | 接口调用成功的回调函数 |
# 返回值:
Promise‹SetWindowSizeRes›