blob: c6a92d91c781b06058bd931069958ecadf2f981e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
using CoreLocation;
using Foundation;
namespace Xamarin.Forms.Maps.MacOS.Extra
{
delegate void CLGeocodeCompletionHandler(CLPlacemark[] placemarks, NSError error);
[BaseType(typeof(NSObject))]
interface CLGeocoder
{
[Export("isGeocoding")]
bool Geocoding { get; }
[Export("reverseGeocodeLocation:completionHandler:")]
[Async]
void ReverseGeocodeLocation(CLLocation location, CLGeocodeCompletionHandler completionHandler);
[Export("geocodeAddressDictionary:completionHandler:")]
[Async]
void GeocodeAddress(NSDictionary addressDictionary, CLGeocodeCompletionHandler completionHandler);
[Export("geocodeAddressString:completionHandler:")]
[Async]
void GeocodeAddress(string addressString, CLGeocodeCompletionHandler completionHandler);
[Export("geocodeAddressString:inRegion:completionHandler:")]
[Async]
void GeocodeAddress(string addressString, CLRegion region, CLGeocodeCompletionHandler completionHandler);
[Export("cancelGeocode")]
void CancelGeocode();
}
}
|