onLoad |
Monitor page loading, the parameter is the data passed on the previous page, and the parameter type is Object (used for page parameter transfer) |
onShow |
Monitor page display. It is triggered every time the page appears on the screen, including returning from the lower page point to reveal the current page |
onReady |
The first rendering of the monitoring page is complete. Note that if the rendering speed is fast, it will be triggered before the page enters the animation. |
onHide |
Monitor page hiding |
onUnload |
Monitor page uninstall |
onResize |
Monitor window size changes App, WeChat applet |
onPullDownRefresh |
Monitor user pull-down actions, generally used for pull-down refresh |
onReachBottom |
Event when the page scrolls to the bottom (not scroll-view to the bottom) |
onTabItemTap |
Triggered when tab is clicked, the parameter is Object |
onShareAppMessage |
The user clicks on the upper right corner to share |
onPageScroll |
Monitor page scrolling, the parameter is Object |
onNavigationBarButtonTap |
Listen to the native title bar button click event, the parameter is Object |
onBackPress |
To monitor the page return, return event = {from:backbutton, navigateBack}, backbutton indicates that the source is the return button in the upper left corner or the android return key; navigateBack indicates that the source is uni.navigateBack; detailed description and usage: onBackPress in detail. The Alipay applet can only be triggered by the real machine and can only monitor the return caused by non-navigateBack, and cannot prevent the default behavior. |
onNavigationBarSearchInputChanged |
Monitor the input content change event of the native title bar search input box |
onNavigationBarSearchInputConfirmed |
Monitor the search event of the native title bar search input box, triggered when the user clicks the "search" button on the soft keyboard. |
onNavigationBarSearchInputClicked |
Listen to the click event of the search input box in the native title bar |
onShareTimeline |
Monitor users click on the upper right corner to forward to Moments |
onAddToFavorites |
Listen for users to click favorites in the upper right corner |