objc2_intents/generated/
INPlacemarkResolutionResult.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5#[cfg(feature = "objc2-core-location")]
6use objc2_core_location::*;
7use objc2_foundation::*;
8
9use crate::*;
10
11extern_class!(
12 #[unsafe(super(INIntentResolutionResult, NSObject))]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 #[cfg(feature = "INIntentResolutionResult")]
16 pub struct INPlacemarkResolutionResult;
17);
18
19#[cfg(feature = "INIntentResolutionResult")]
20extern_conformance!(
21 unsafe impl NSObjectProtocol for INPlacemarkResolutionResult {}
22);
23
24#[cfg(feature = "INIntentResolutionResult")]
25impl INPlacemarkResolutionResult {
26 extern_methods!(
27 #[cfg(feature = "objc2-core-location")]
28 #[unsafe(method(successWithResolvedPlacemark:))]
29 #[unsafe(method_family = none)]
30 pub unsafe fn successWithResolvedPlacemark(
31 resolved_placemark: &CLPlacemark,
32 ) -> Retained<Self>;
33
34 #[cfg(feature = "objc2-core-location")]
35 #[unsafe(method(disambiguationWithPlacemarksToDisambiguate:))]
36 #[unsafe(method_family = none)]
37 pub unsafe fn disambiguationWithPlacemarksToDisambiguate(
38 placemarks_to_disambiguate: &NSArray<CLPlacemark>,
39 ) -> Retained<Self>;
40
41 #[cfg(feature = "objc2-core-location")]
42 #[unsafe(method(confirmationRequiredWithPlacemarkToConfirm:))]
43 #[unsafe(method_family = none)]
44 pub unsafe fn confirmationRequiredWithPlacemarkToConfirm(
45 placemark_to_confirm: Option<&CLPlacemark>,
46 ) -> Retained<Self>;
47 );
48}
49
50#[cfg(feature = "INIntentResolutionResult")]
52impl INPlacemarkResolutionResult {
53 extern_methods!(
54 #[unsafe(method(init))]
55 #[unsafe(method_family = init)]
56 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
57
58 #[unsafe(method(needsValue))]
59 #[unsafe(method_family = none)]
60 pub unsafe fn needsValue() -> Retained<Self>;
61
62 #[unsafe(method(notRequired))]
63 #[unsafe(method_family = none)]
64 pub unsafe fn notRequired() -> Retained<Self>;
65
66 #[unsafe(method(unsupported))]
67 #[unsafe(method_family = none)]
68 pub unsafe fn unsupported() -> Retained<Self>;
69 );
70}
71
72#[cfg(feature = "INIntentResolutionResult")]
74impl INPlacemarkResolutionResult {
75 extern_methods!(
76 #[unsafe(method(new))]
77 #[unsafe(method_family = new)]
78 pub unsafe fn new() -> Retained<Self>;
79 );
80}