objc2_map_kit/generated/
MKReverseGeocodingRequest.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-location")]
7use objc2_core_location::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12extern_class!(
13 #[unsafe(super(NSObject))]
15 #[derive(Debug, PartialEq, Eq, Hash)]
16 pub struct MKReverseGeocodingRequest;
17);
18
19extern_conformance!(
20 unsafe impl NSObjectProtocol for MKReverseGeocodingRequest {}
21);
22
23impl MKReverseGeocodingRequest {
24 extern_methods!(
25 #[unsafe(method(isCancelled))]
26 #[unsafe(method_family = none)]
27 pub unsafe fn isCancelled(&self) -> bool;
28
29 #[unsafe(method(isLoading))]
30 #[unsafe(method_family = none)]
31 pub unsafe fn isLoading(&self) -> bool;
32
33 #[cfg(feature = "objc2-core-location")]
34 #[unsafe(method(location))]
35 #[unsafe(method_family = none)]
36 pub unsafe fn location(&self) -> Retained<CLLocation>;
37
38 #[unsafe(method(preferredLocale))]
39 #[unsafe(method_family = none)]
40 pub unsafe fn preferredLocale(&self) -> Option<Retained<NSLocale>>;
41
42 #[unsafe(method(setPreferredLocale:))]
44 #[unsafe(method_family = none)]
45 pub unsafe fn setPreferredLocale(&self, preferred_locale: Option<&NSLocale>);
46
47 #[unsafe(method(init))]
48 #[unsafe(method_family = init)]
49 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
50
51 #[unsafe(method(new))]
52 #[unsafe(method_family = new)]
53 pub unsafe fn new() -> Retained<Self>;
54
55 #[cfg(feature = "objc2-core-location")]
56 #[unsafe(method(initWithLocation:))]
57 #[unsafe(method_family = init)]
58 pub unsafe fn initWithLocation(
59 this: Allocated<Self>,
60 location: &CLLocation,
61 ) -> Option<Retained<Self>>;
62
63 #[cfg(all(feature = "MKMapItem", feature = "block2"))]
64 #[unsafe(method(getMapItemsWithCompletionHandler:))]
65 #[unsafe(method_family = none)]
66 pub unsafe fn getMapItemsWithCompletionHandler(
67 &self,
68 completion_handler: &block2::DynBlock<dyn Fn(*mut NSArray<MKMapItem>, *mut NSError)>,
69 );
70
71 #[unsafe(method(cancel))]
72 #[unsafe(method_family = none)]
73 pub unsafe fn cancel(&self);
74 );
75}