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
16extern_conformance!(
17 unsafe impl NSObjectProtocol for MKLocalSearchResponse {}
18);
19
20impl MKLocalSearchResponse {
21 extern_methods!(
22 #[cfg(feature = "MKMapItem")]
23 #[unsafe(method(mapItems))]
24 #[unsafe(method_family = none)]
25 pub unsafe fn mapItems(&self) -> Retained<NSArray<MKMapItem>>;
26
27 #[cfg(all(feature = "MKGeometry", feature = "objc2-core-location"))]
28 #[unsafe(method(boundingRegion))]
29 #[unsafe(method_family = none)]
30 pub unsafe fn boundingRegion(&self) -> MKCoordinateRegion;
31 );
32}
33
34impl MKLocalSearchResponse {
36 extern_methods!(
37 #[unsafe(method(init))]
38 #[unsafe(method_family = init)]
39 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
40
41 #[unsafe(method(new))]
42 #[unsafe(method_family = new)]
43 pub unsafe fn new() -> Retained<Self>;
44 );
45}