my.setCanPullDown

Set whether to support pull-down on the page (supported by default on Mini Program pages).

Supported types of mini programs: DSL, H5+

Sample Code

DSL

copy
my.setCanPullDown({
  canPullDown: true,
  success: function (res) {
    console.log(res);
  },
  fail: function (err) {
    console.log(err);
  }
});

H5+

copy
AlipayJSBridge.call('setCanPullDown', {
  canPullDown: true
}, function (res) {
  my.alert({ title: 'AlipayJSBridge setCanPullDown result', content: JSON.stringify(res, null, 2) });
});

Parameters

The incoming parameter is of the Object type with the following attributes:

PropertyType

Required

Description
canPullDownBooleanYesSupport pull-down or not.