objc2_intents/generated/
INCarAudioSourceResolutionResult.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9 #[unsafe(super(INIntentResolutionResult, NSObject))]
11 #[derive(Debug, PartialEq, Eq, Hash)]
12 #[cfg(feature = "INIntentResolutionResult")]
13 #[deprecated = "INCarAudioSourceResolutionResult is deprecated. There is no replacement."]
14 pub struct INCarAudioSourceResolutionResult;
15);
16
17#[cfg(feature = "INIntentResolutionResult")]
18extern_conformance!(
19 unsafe impl NSObjectProtocol for INCarAudioSourceResolutionResult {}
20);
21
22#[cfg(feature = "INIntentResolutionResult")]
23impl INCarAudioSourceResolutionResult {
24 extern_methods!(
25 #[cfg(feature = "INCarAudioSource")]
26 #[deprecated = "INCarAudioSourceResolutionResult is deprecated. There is no replacement."]
27 #[unsafe(method(successWithResolvedCarAudioSource:))]
28 #[unsafe(method_family = none)]
29 pub unsafe fn successWithResolvedCarAudioSource(
30 resolved_car_audio_source: INCarAudioSource,
31 ) -> Retained<Self>;
32
33 #[cfg(feature = "INCarAudioSource")]
34 #[deprecated]
35 #[unsafe(method(successWithResolvedValue:))]
36 #[unsafe(method_family = none)]
37 pub unsafe fn successWithResolvedValue(resolved_value: INCarAudioSource) -> Retained<Self>;
38
39 #[cfg(feature = "INCarAudioSource")]
40 #[deprecated = "INCarAudioSourceResolutionResult is deprecated. There is no replacement."]
41 #[unsafe(method(confirmationRequiredWithCarAudioSourceToConfirm:))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn confirmationRequiredWithCarAudioSourceToConfirm(
44 car_audio_source_to_confirm: INCarAudioSource,
45 ) -> Retained<Self>;
46
47 #[cfg(feature = "INCarAudioSource")]
48 #[deprecated]
49 #[unsafe(method(confirmationRequiredWithValueToConfirm:))]
50 #[unsafe(method_family = none)]
51 pub unsafe fn confirmationRequiredWithValueToConfirm(
52 value_to_confirm: INCarAudioSource,
53 ) -> Retained<Self>;
54 );
55}
56
57#[cfg(feature = "INIntentResolutionResult")]
59impl INCarAudioSourceResolutionResult {
60 extern_methods!(
61 #[unsafe(method(init))]
62 #[unsafe(method_family = init)]
63 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
64
65 #[unsafe(method(needsValue))]
66 #[unsafe(method_family = none)]
67 pub unsafe fn needsValue() -> Retained<Self>;
68
69 #[unsafe(method(notRequired))]
70 #[unsafe(method_family = none)]
71 pub unsafe fn notRequired() -> Retained<Self>;
72
73 #[unsafe(method(unsupported))]
74 #[unsafe(method_family = none)]
75 pub unsafe fn unsupported() -> Retained<Self>;
76 );
77}
78
79#[cfg(feature = "INIntentResolutionResult")]
81impl INCarAudioSourceResolutionResult {
82 extern_methods!(
83 #[unsafe(method(new))]
84 #[unsafe(method_family = new)]
85 pub unsafe fn new() -> Retained<Self>;
86 );
87}