objc2_intents/generated/
INNoteResolutionResult.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::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/intents/innoteresolutionresult?language=objc)
11    #[unsafe(super(INIntentResolutionResult, NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    #[cfg(feature = "INIntentResolutionResult")]
14    pub struct INNoteResolutionResult;
15);
16
17#[cfg(feature = "INIntentResolutionResult")]
18extern_conformance!(
19    unsafe impl NSObjectProtocol for INNoteResolutionResult {}
20);
21
22#[cfg(feature = "INIntentResolutionResult")]
23impl INNoteResolutionResult {
24    extern_methods!(
25        #[cfg(feature = "INNote")]
26        #[unsafe(method(successWithResolvedNote:))]
27        #[unsafe(method_family = none)]
28        pub unsafe fn successWithResolvedNote(resolved_note: &INNote) -> Retained<Self>;
29
30        #[cfg(feature = "INNote")]
31        #[unsafe(method(disambiguationWithNotesToDisambiguate:))]
32        #[unsafe(method_family = none)]
33        pub unsafe fn disambiguationWithNotesToDisambiguate(
34            notes_to_disambiguate: &NSArray<INNote>,
35        ) -> Retained<Self>;
36
37        #[cfg(feature = "INNote")]
38        #[unsafe(method(confirmationRequiredWithNoteToConfirm:))]
39        #[unsafe(method_family = none)]
40        pub unsafe fn confirmationRequiredWithNoteToConfirm(
41            note_to_confirm: Option<&INNote>,
42        ) -> Retained<Self>;
43    );
44}
45
46/// Methods declared on superclass `INIntentResolutionResult`.
47#[cfg(feature = "INIntentResolutionResult")]
48impl INNoteResolutionResult {
49    extern_methods!(
50        #[unsafe(method(init))]
51        #[unsafe(method_family = init)]
52        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
53
54        #[unsafe(method(needsValue))]
55        #[unsafe(method_family = none)]
56        pub unsafe fn needsValue() -> Retained<Self>;
57
58        #[unsafe(method(notRequired))]
59        #[unsafe(method_family = none)]
60        pub unsafe fn notRequired() -> Retained<Self>;
61
62        #[unsafe(method(unsupported))]
63        #[unsafe(method_family = none)]
64        pub unsafe fn unsupported() -> Retained<Self>;
65    );
66}
67
68/// Methods declared on superclass `NSObject`.
69#[cfg(feature = "INIntentResolutionResult")]
70impl INNoteResolutionResult {
71    extern_methods!(
72        #[unsafe(method(new))]
73        #[unsafe(method_family = new)]
74        pub unsafe fn new() -> Retained<Self>;
75    );
76}