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