my.startPullDownRefresh
Start the pull-to-refresh function. The pull-to-refresh animation is triggered upon the code execution, which is consistent with the manual pull-to-refresh effect.
Sample Code
copy
my.startPullDownRefresh()
Parameters
Property | Type | Required | Description |
success | Function | No | The callback function for a successful API call. |
fail | Function | No | The callback function for a failed API call. |
complete | Function | No | The callback function used when the API call is completed. This function is always executed no matter the call succeeds or fails. |