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