how can I implement PlacePicker in my project as I can this doable in iOS native by implement this code
@IBAction func pickPlace(_ sender: UIButton) {
let config = GMSPlacePickerConfig(viewport: nil)
let placePicker = GMSPlacePicker(config: config)
placePicker.pickPlace(callback: { (place, error) -> Void in
if let error = error {
print("Pick Place error: \(error.localizedDescription)")
return
}
guard let place = place else {
print("No place selected")
return
}
print("Place name \(place.name)")
print("Place address \(place.formattedAddress)")
print("Place attributions \(place.attributions)")
})
}
how can I do the same in Xamarin.iOS
First I need nuget to include in my project
Second how can I implement the same code
First follow instruction to get google api key
Second Call this method in
FinishedLaunching
Third add this keys in your
Info.plist
Fourth ask user for permission to use his location
Info.plist
Fifth now we call PlacePicker
If you want know what equivalent to any method name in native looking here