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