objc2_intents/generated/
INCarSignalOptionsResolutionResult.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9    /// [Apple's documentation](https://developer.apple.com/documentation/intents/incarsignaloptionsresolutionresult?language=objc)
10    #[unsafe(super(INIntentResolutionResult, NSObject))]
11    #[derive(Debug, PartialEq, Eq, Hash)]
12    #[cfg(feature = "INIntentResolutionResult")]
13    pub struct INCarSignalOptionsResolutionResult;
14);
15
16#[cfg(feature = "INIntentResolutionResult")]
17extern_conformance!(
18    unsafe impl NSObjectProtocol for INCarSignalOptionsResolutionResult {}
19);
20
21#[cfg(feature = "INIntentResolutionResult")]
22impl INCarSignalOptionsResolutionResult {
23    extern_methods!(
24        #[cfg(feature = "INCarSignalOptions")]
25        #[unsafe(method(successWithResolvedCarSignalOptions:))]
26        #[unsafe(method_family = none)]
27        pub unsafe fn successWithResolvedCarSignalOptions(
28            resolved_car_signal_options: INCarSignalOptions,
29        ) -> Retained<Self>;
30
31        #[cfg(feature = "INCarSignalOptions")]
32        #[deprecated]
33        #[unsafe(method(successWithResolvedValue:))]
34        #[unsafe(method_family = none)]
35        pub unsafe fn successWithResolvedValue(
36            resolved_value: INCarSignalOptions,
37        ) -> Retained<Self>;
38
39        #[cfg(feature = "INCarSignalOptions")]
40        #[unsafe(method(confirmationRequiredWithCarSignalOptionsToConfirm:))]
41        #[unsafe(method_family = none)]
42        pub unsafe fn confirmationRequiredWithCarSignalOptionsToConfirm(
43            car_signal_options_to_confirm: INCarSignalOptions,
44        ) -> Retained<Self>;
45
46        #[cfg(feature = "INCarSignalOptions")]
47        #[deprecated]
48        #[unsafe(method(confirmationRequiredWithValueToConfirm:))]
49        #[unsafe(method_family = none)]
50        pub unsafe fn confirmationRequiredWithValueToConfirm(
51            value_to_confirm: INCarSignalOptions,
52        ) -> Retained<Self>;
53    );
54}
55
56/// Methods declared on superclass `INIntentResolutionResult`.
57#[cfg(feature = "INIntentResolutionResult")]
58impl INCarSignalOptionsResolutionResult {
59    extern_methods!(
60        #[unsafe(method(init))]
61        #[unsafe(method_family = init)]
62        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
63
64        #[unsafe(method(needsValue))]
65        #[unsafe(method_family = none)]
66        pub unsafe fn needsValue() -> Retained<Self>;
67
68        #[unsafe(method(notRequired))]
69        #[unsafe(method_family = none)]
70        pub unsafe fn notRequired() -> Retained<Self>;
71
72        #[unsafe(method(unsupported))]
73        #[unsafe(method_family = none)]
74        pub unsafe fn unsupported() -> Retained<Self>;
75    );
76}
77
78/// Methods declared on superclass `NSObject`.
79#[cfg(feature = "INIntentResolutionResult")]
80impl INCarSignalOptionsResolutionResult {
81    extern_methods!(
82        #[unsafe(method(new))]
83        #[unsafe(method_family = new)]
84        pub unsafe fn new() -> Retained<Self>;
85    );
86}