rememberPlaceSearch

abstract suspend fun rememberPlaceSearch(suggestion: PlaceSuggestion)

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)
}
}

iOS (Swift)

func onPlacePicked(_ suggestion: PlaceSuggestion) {
Task {
try? await AFCore.shared.locations().rememberPlaceSearch(suggestion: suggestion)
fillNominationForm(suggestion)
}
}

Parameters

suggestion

The chosen place.