Skip to main content

onPullDownRefresh

Handles the pull-down refresh event.

After the event handling is complete, you need to call stopPullDownRefresh() to stop the page's refresh control.

Parameters

The e parameter is of type Event, and the current version does not contain valid information.

NameTypeRequiredDefaultDescription
callback(e: Event) => anyYes

Example

import { onPullDownRefresh, stopPullDownRefresh } from "minip-bridge";

onPullDownRefresh(() => {
doSomeThing().finally(() => {
stopPullDownRefresh();
});
});