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.

Note:

In the Window, the attribute settings of the pullRefresh and allowsBounceVertical affect the usage of the pull-to-refresh function.

AttributeTypeMandatoryDescription
pullRefreshBooleanNoAllow pull-to-refresh or not False by default. Remarks: The precondition for pull-to-refresh is that the allowsBounceVertical value is YES
allowsBounceVerticalStringNoIf the page supports vertical pull exceeding actual contents. YES by default, supportingĀ YES/NO

Sample Code

copy
my.startPullDownRefresh()