objc2_intents/generated/
INEnumResolutionResult.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 pub struct INEnumResolutionResult;
14);
15
16#[cfg(feature = "INIntentResolutionResult")]
17extern_conformance!(
18 unsafe impl NSObjectProtocol for INEnumResolutionResult {}
19);
20
21#[cfg(feature = "INIntentResolutionResult")]
22impl INEnumResolutionResult {
23 extern_methods!(
24 #[unsafe(method(successWithResolvedValue:))]
25 #[unsafe(method_family = none)]
26 pub unsafe fn successWithResolvedValue(resolved_value: NSInteger) -> Retained<Self>;
27
28 #[unsafe(method(confirmationRequiredWithValueToConfirm:))]
29 #[unsafe(method_family = none)]
30 pub unsafe fn confirmationRequiredWithValueToConfirm(
31 value_to_confirm: NSInteger,
32 ) -> Retained<Self>;
33 );
34}
35
36#[cfg(feature = "INIntentResolutionResult")]
38impl INEnumResolutionResult {
39 extern_methods!(
40 #[unsafe(method(init))]
41 #[unsafe(method_family = init)]
42 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
43
44 #[unsafe(method(needsValue))]
45 #[unsafe(method_family = none)]
46 pub unsafe fn needsValue() -> Retained<Self>;
47
48 #[unsafe(method(notRequired))]
49 #[unsafe(method_family = none)]
50 pub unsafe fn notRequired() -> Retained<Self>;
51
52 #[unsafe(method(unsupported))]
53 #[unsafe(method_family = none)]
54 pub unsafe fn unsupported() -> Retained<Self>;
55 );
56}
57
58#[cfg(feature = "INIntentResolutionResult")]
60impl INEnumResolutionResult {
61 extern_methods!(
62 #[unsafe(method(new))]
63 #[unsafe(method_family = new)]
64 pub unsafe fn new() -> Retained<Self>;
65 );
66}