objc2_intents/generated/
INStartCallCallRecordToCallBackResolutionResult.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9#[repr(transparent)]
12#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
13pub struct INStartCallCallRecordToCallBackUnsupportedReason(pub NSInteger);
14impl INStartCallCallRecordToCallBackUnsupportedReason {
15 #[doc(alias = "INStartCallCallRecordToCallBackUnsupportedReasonNoMatchingCall")]
16 pub const NoMatchingCall: Self = Self(1);
17}
18
19unsafe impl Encode for INStartCallCallRecordToCallBackUnsupportedReason {
20 const ENCODING: Encoding = NSInteger::ENCODING;
21}
22
23unsafe impl RefEncode for INStartCallCallRecordToCallBackUnsupportedReason {
24 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
25}
26
27extern_class!(
28 #[unsafe(super(INCallRecordResolutionResult, INIntentResolutionResult, NSObject))]
30 #[derive(Debug, PartialEq, Eq, Hash)]
31 #[cfg(all(
32 feature = "INCallRecordResolutionResult",
33 feature = "INIntentResolutionResult"
34 ))]
35 pub struct INStartCallCallRecordToCallBackResolutionResult;
36);
37
38#[cfg(all(
39 feature = "INCallRecordResolutionResult",
40 feature = "INIntentResolutionResult"
41))]
42extern_conformance!(
43 unsafe impl NSObjectProtocol for INStartCallCallRecordToCallBackResolutionResult {}
44);
45
46#[cfg(all(
47 feature = "INCallRecordResolutionResult",
48 feature = "INIntentResolutionResult"
49))]
50impl INStartCallCallRecordToCallBackResolutionResult {
51 extern_methods!(
52 #[unsafe(method(unsupportedForReason:))]
53 #[unsafe(method_family = none)]
54 pub unsafe fn unsupportedForReason(
55 reason: INStartCallCallRecordToCallBackUnsupportedReason,
56 ) -> Retained<Self>;
57
58 #[unsafe(method(initWithCallRecordResolutionResult:))]
59 #[unsafe(method_family = init)]
60 pub unsafe fn initWithCallRecordResolutionResult(
61 this: Allocated<Self>,
62 call_record_resolution_result: &INCallRecordResolutionResult,
63 ) -> Retained<Self>;
64 );
65}
66
67#[cfg(all(
69 feature = "INCallRecordResolutionResult",
70 feature = "INIntentResolutionResult"
71))]
72impl INStartCallCallRecordToCallBackResolutionResult {
73 extern_methods!(
74 #[cfg(feature = "INCallRecord")]
75 #[unsafe(method(successWithResolvedCallRecord:))]
76 #[unsafe(method_family = none)]
77 pub unsafe fn successWithResolvedCallRecord(
78 resolved_call_record: &INCallRecord,
79 ) -> Retained<Self>;
80
81 #[cfg(feature = "INCallRecord")]
82 #[unsafe(method(disambiguationWithCallRecordsToDisambiguate:))]
83 #[unsafe(method_family = none)]
84 pub unsafe fn disambiguationWithCallRecordsToDisambiguate(
85 call_records_to_disambiguate: &NSArray<INCallRecord>,
86 ) -> Retained<Self>;
87
88 #[cfg(feature = "INCallRecord")]
89 #[unsafe(method(confirmationRequiredWithCallRecordToConfirm:))]
90 #[unsafe(method_family = none)]
91 pub unsafe fn confirmationRequiredWithCallRecordToConfirm(
92 call_record_to_confirm: Option<&INCallRecord>,
93 ) -> Retained<Self>;
94 );
95}
96
97#[cfg(all(
99 feature = "INCallRecordResolutionResult",
100 feature = "INIntentResolutionResult"
101))]
102impl INStartCallCallRecordToCallBackResolutionResult {
103 extern_methods!(
104 #[unsafe(method(init))]
105 #[unsafe(method_family = init)]
106 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
107
108 #[unsafe(method(needsValue))]
109 #[unsafe(method_family = none)]
110 pub unsafe fn needsValue() -> Retained<Self>;
111
112 #[unsafe(method(notRequired))]
113 #[unsafe(method_family = none)]
114 pub unsafe fn notRequired() -> Retained<Self>;
115
116 #[unsafe(method(unsupported))]
117 #[unsafe(method_family = none)]
118 pub unsafe fn unsupported() -> Retained<Self>;
119 );
120}
121
122#[cfg(all(
124 feature = "INCallRecordResolutionResult",
125 feature = "INIntentResolutionResult"
126))]
127impl INStartCallCallRecordToCallBackResolutionResult {
128 extern_methods!(
129 #[unsafe(method(new))]
130 #[unsafe(method_family = new)]
131 pub unsafe fn new() -> Retained<Self>;
132 );
133}