# wx.setWindowSize(Object object)
Start from base library version 2.10.1. Please remaining backward compatible.
From base library 2.11.0 Start, this interface stops maintenance
with Promise style call: Not supported
Mini Program plugin: Not supported
To set the window size, this interface applies only to PC Platform, please refer to the guide for details
# parameter
# Object object
attribute | type | Default values | Required | Introductions |
---|---|---|---|---|
width | number | yes | Window width in pixels | |
height | number | yes | Window height in pixels | |
success | function | no | Interface calls the successful callback function | |
fail | function | no | Interface calls failed callback functions | |
complete | function | no | Callback function at the end of an interface call (both successful and unsuccessful calls are executed) |