objc2_map_kit/generated/
MKLocalSearchResponse.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 pub struct MKLocalSearchResponse;
14);
15
16unsafe impl NSObjectProtocol for MKLocalSearchResponse {}
17
18impl MKLocalSearchResponse {
19 extern_methods!(
20 #[cfg(feature = "MKMapItem")]
21 #[unsafe(method(mapItems))]
22 #[unsafe(method_family = none)]
23 pub unsafe fn mapItems(&self) -> Retained<NSArray<MKMapItem>>;
24
25 #[cfg(all(feature = "MKGeometry", feature = "objc2-core-location"))]
26 #[unsafe(method(boundingRegion))]
27 #[unsafe(method_family = none)]
28 pub unsafe fn boundingRegion(&self) -> MKCoordinateRegion;
29 );
30}
31
32impl MKLocalSearchResponse {
34 extern_methods!(
35 #[unsafe(method(init))]
36 #[unsafe(method_family = init)]
37 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
38
39 #[unsafe(method(new))]
40 #[unsafe(method_family = new)]
41 pub unsafe fn new() -> Retained<Self>;
42 );
43}