Announcement: Tencent Cloud Mini Program Platform Renamed to Tencent Cloud Super App as a Service on January 2, 2025
Console Updates
Android SDK Updates
iOS SDK Updates
Flutter SDK Updates
IDE Updates
Base Library Updates
This API is called using wx.onWindowResize(function listener).
Property | Type |
size | Object |
Property | Type | Description |
windowWidth | number | The new window width in pixels. |
windowHeight | number | The new window height in pixels. |
The API is called using wx.offWindowResize(function listener).
const listener = function (res) { console.log(res) }wx.onWindowResize(listener)wx.offWindowResize(listener) // Must pass the same function object used in wx.onWindowResize
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback