objc2_intents/generated/
INNotebookItemTypeResolutionResult.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/innotebookitemtyperesolutionresult?language=objc)
11    #[unsafe(super(INIntentResolutionResult, NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    #[cfg(feature = "INIntentResolutionResult")]
14    pub struct INNotebookItemTypeResolutionResult;
15);
16
17#[cfg(feature = "INIntentResolutionResult")]
18extern_conformance!(
19    unsafe impl NSObjectProtocol for INNotebookItemTypeResolutionResult {}
20);
21
22#[cfg(feature = "INIntentResolutionResult")]
23impl INNotebookItemTypeResolutionResult {
24    extern_methods!(
25        #[cfg(feature = "INNotebookItemType")]
26        #[unsafe(method(successWithResolvedNotebookItemType:))]
27        #[unsafe(method_family = none)]
28        pub unsafe fn successWithResolvedNotebookItemType(
29            resolved_notebook_item_type: INNotebookItemType,
30        ) -> Retained<Self>;
31
32        #[unsafe(method(disambiguationWithNotebookItemTypesToDisambiguate:))]
33        #[unsafe(method_family = none)]
34        pub unsafe fn disambiguationWithNotebookItemTypesToDisambiguate(
35            notebook_item_types_to_disambiguate: &NSArray<NSNumber>,
36        ) -> Retained<Self>;
37
38        #[cfg(feature = "INNotebookItemType")]
39        #[unsafe(method(confirmationRequiredWithNotebookItemTypeToConfirm:))]
40        #[unsafe(method_family = none)]
41        pub unsafe fn confirmationRequiredWithNotebookItemTypeToConfirm(
42            notebook_item_type_to_confirm: INNotebookItemType,
43        ) -> Retained<Self>;
44    );
45}
46
47/// Methods declared on superclass `INIntentResolutionResult`.
48#[cfg(feature = "INIntentResolutionResult")]
49impl INNotebookItemTypeResolutionResult {
50    extern_methods!(
51        #[unsafe(method(init))]
52        #[unsafe(method_family = init)]
53        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
54
55        #[unsafe(method(needsValue))]
56        #[unsafe(method_family = none)]
57        pub unsafe fn needsValue() -> Retained<Self>;
58
59        #[unsafe(method(notRequired))]
60        #[unsafe(method_family = none)]
61        pub unsafe fn notRequired() -> Retained<Self>;
62
63        #[unsafe(method(unsupported))]
64        #[unsafe(method_family = none)]
65        pub unsafe fn unsupported() -> Retained<Self>;
66    );
67}
68
69/// Methods declared on superclass `NSObject`.
70#[cfg(feature = "INIntentResolutionResult")]
71impl INNotebookItemTypeResolutionResult {
72    extern_methods!(
73        #[unsafe(method(new))]
74        #[unsafe(method_family = new)]
75        pub unsafe fn new() -> Retained<Self>;
76    );
77}