From RAD Studio API Documentation
Jump to: navigation, search


property PullToRefresh: Boolean read FPullToRefresh write SetPullToRefresh default False;


__property bool PullToRefresh = {read=FPullToRefresh, write=SetPullToRefresh, default=0};


Type Visibility Source Unit Parent
property public
FMX.ListView TListViewBase


Determines whether the "pull list to refresh" feature is enabled.

When this property is set to true, the Pull-to-Refresh feature is enabled and the end user can pull down a list view to refresh the contents.

To enable the Pull-to-Refresh feature, select the TListView component in the Form Designer, and do the following:

  1. On the Properties page of the Object Inspector, set the PullToRefresh property to true.
  2. Open the Events page, and double-click the right-hand column for OnPullRefresh.
  3. When the Code Editor opens, you can implement the OnPullRefresh event handler.
    In this event handler, you can specify how to refresh the list view. For example, you might update existing list items, add new items, or delete specified items.
Note: In the case of native iOS controls, you can use the PullRefreshWait property to set whether the animated spinning indicator disappears automatically, or if it disappears when you call StopPullRefresh.

See Also