npm install @uni/pull-down-refresh

Turn on drop-down refresh. The drop-down refresh triggers the "pulldownrefresh" event.
``bash`
$ npm install @uni/pull-down-refresh --save`
orbash`
$ npm install @uni/apis --saveUsage
`javascript
import { onPullDownRefresh } from '@uni/pullDownRefresh';
onPullDownRefresh();
`
You can also import from the big package:
`js
import { pullDownRefresh } from '@uni/apis';
pullDownRefresh.onPullDownRefresh();
`
You can add event listener:
`js`
pullDownRefresh.onPullDownRefresh({eventCallback: cb});Methods
#### Arguments
| Property | Type | Description | required | Default |
| --- | --- | --- | --- | --- |
| options | object | | ✔️ | - |boolean
| options.pullRefresh | | The switch of manual pulldownRefresh | ✘ | true |number
| options.triggerDistance | | The pull-down distance required when the pull-down refresh is triggered | ✘ | 90 |Function
| options.eventCallback | | The callback function when the event is triggered | ✘ | - |Function
| options.success | | The callback function for a successful API call | ✘ | - |Function
| options.fail | | The callback function for a failed API call | ✘ | - |Function
| options.complete | | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |

Starts swipe-down-to-refresh.

Note: DingTalk miniprogram does not support startPullDownRefresh
`bash`
$ npm install @uni/pull-down-refresh --save`
orbash`
$ npm install @uni/apis --saveUsage
`javascript
import { startPullDownRefresh } from '@uni/pullDownRefresh';
startPullDownRefresh();
`
You can also import from the big package:
`js
import { pullDownRefresh } from '@uni/apis';
pullDownRefresh.startPullDownRefresh();
`
#### Arguments
| Property | Type | Description | required | Default |
| --- | --- | --- | --- | --- |
| options | object | | ✔️ | - |Function
| options.success | | The callback function for a successful API call | ✘ | - |Function
| options.fail | | The callback function for a failed API call | ✘ | - |Function
| options.complete | | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |

Disables swipe-down-to-refresh for the current page.

`bash`
$ npm install @uni/pullDownRefresh --save`
orbash`
$ npm install @uni/apis --saveUsage
`javascript
import {stopPullDownRefresh} from '@uni/pullDownRefresh';
stopPullDownRefresh();
`
You can also import from the big package:
`js
import { pullDownRefresh } from '@uni/apis';
pullDownRefresh.stopPullDownRefresh();
`
#### Arguments
| Property | Type | Description | required | Default | Supported |
| --- | --- | --- | --- | --- | --- |
| options | object | | ✔️ | - | - |Function
| options.success | | The callback function for a successful API call | ✘ | - | Function
|
| options.fail | | The callback function for a failed API call | ✘ | - | Function` | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |
|
| options.complete |
|