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.

Supported types of mini programs: DSL

Sample Code

copy
my.startPullDownRefresh()

Parameters

PropertyType

Required

Description
successFunctionNo The callback function for a successful API call.
failFunctionNoThe callback function for a failed API call.
completeFunctionNoThe callback function used when the API call is completed. This function is always executed no matter the call succeeds or fails.

Error Codes

Error Code

Error Message

Further Action

5

pullRefresh needs to be enabled in the configuration

Verify that pullRefresh is enabled.