objc2_intents/generated/
INEnumResolutionResult.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/inenumresolutionresult?language=objc)
10    #[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/// Methods declared on superclass `INIntentResolutionResult`.
37#[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/// Methods declared on superclass `NSObject`.
59#[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}