private async Task RefreshAsync() { RefreshControl.BeginRefreshing(); await todoService.RefreshDataAsync(); RefreshControl.EndRefreshing(); TableView.ReloadData(); }
async Task RefreshAsync() { // only activate the refresh control if the feature is available if (useRefreshControl) { RefreshControl.BeginRefreshing(); } await todoService.RefreshDataAsync(); if (useRefreshControl) { RefreshControl.EndRefreshing(); } TableView.ReloadData(); }