remember Place Search
Records a place the member chose, moving it to the front if it is already remembered.
Call it right after the member picks a PlaceSuggestion, whether it came from searchPlaces or from getRecentPlaceSearches. The ten most recent are kept; remembering an eleventh drops the oldest.
Android (Kotlin)
fun onPlacePicked(suggestion: PlaceSuggestion) {
lifecycleScope.launch {
AFCore.locations().rememberPlaceSearch(suggestion)
fillNominationForm(suggestion)
}
}Content copied to clipboard
iOS (Swift)
func onPlacePicked(_ suggestion: PlaceSuggestion) {
Task {
try? await AFCore.shared.locations().rememberPlaceSearch(suggestion: suggestion)
fillNominationForm(suggestion)
}
}Content copied to clipboard
Parameters
suggestion
The chosen place.