//Event Refresh Data Page private void SwipeRefreshLayoutOnRefresh(object sender, EventArgs e) { try { NearByAdapter.Clear(); Get_NearByList_API(); } catch (Exception exception) { Crashes.TrackError(exception); } }
//Result protected override void OnActivityResult(int requestCode, Result resultCode, Intent data) { try { base.OnActivityResult(requestCode, resultCode, data); if (requestCode == 50000 && resultCode == Result.Ok) { var gender = data.GetStringExtra("Gender") ?? "Data not available"; if (gender != "Data not available" && !string.IsNullOrEmpty(gender)) { Filter_gender = gender; } var distance = data.GetStringExtra("Distance") ?? "Data not available"; if (distance != "Data not available" && !string.IsNullOrEmpty(distance)) { Filter_Distance = distance; } var status = data.GetStringExtra("Status") ?? "Data not available"; if (status != "Data not available" && !string.IsNullOrEmpty(status)) { Filter_status = status; } NearByAdapter.Clear(); swipeRefreshLayout.Refreshing = true; Get_NearByList_API(); } } catch (Exception e) { Crashes.TrackError(e); } }