objc2_intents/generated/
INNoteContentTypeResolutionResult.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/innotecontenttyperesolutionresult?language=objc)
10    #[unsafe(super(INIntentResolutionResult, NSObject))]
11    #[derive(Debug, PartialEq, Eq, Hash)]
12    #[cfg(feature = "INIntentResolutionResult")]
13    #[deprecated = "This resolution result is no longer used"]
14    pub struct INNoteContentTypeResolutionResult;
15);
16
17#[cfg(feature = "INIntentResolutionResult")]
18extern_conformance!(
19    unsafe impl NSObjectProtocol for INNoteContentTypeResolutionResult {}
20);
21
22#[cfg(feature = "INIntentResolutionResult")]
23impl INNoteContentTypeResolutionResult {
24    extern_methods!(
25        #[cfg(feature = "INNoteContentType")]
26        #[deprecated = "This resolution result is no longer used"]
27        #[unsafe(method(successWithResolvedNoteContentType:))]
28        #[unsafe(method_family = none)]
29        pub unsafe fn successWithResolvedNoteContentType(
30            resolved_note_content_type: INNoteContentType,
31        ) -> Retained<Self>;
32
33        #[cfg(feature = "INNoteContentType")]
34        #[deprecated = "This resolution result is no longer used"]
35        #[unsafe(method(confirmationRequiredWithNoteContentTypeToConfirm:))]
36        #[unsafe(method_family = none)]
37        pub unsafe fn confirmationRequiredWithNoteContentTypeToConfirm(
38            note_content_type_to_confirm: INNoteContentType,
39        ) -> Retained<Self>;
40    );
41}
42
43/// Methods declared on superclass `INIntentResolutionResult`.
44#[cfg(feature = "INIntentResolutionResult")]
45impl INNoteContentTypeResolutionResult {
46    extern_methods!(
47        #[unsafe(method(init))]
48        #[unsafe(method_family = init)]
49        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
50
51        #[unsafe(method(needsValue))]
52        #[unsafe(method_family = none)]
53        pub unsafe fn needsValue() -> Retained<Self>;
54
55        #[unsafe(method(notRequired))]
56        #[unsafe(method_family = none)]
57        pub unsafe fn notRequired() -> Retained<Self>;
58
59        #[unsafe(method(unsupported))]
60        #[unsafe(method_family = none)]
61        pub unsafe fn unsupported() -> Retained<Self>;
62    );
63}
64
65/// Methods declared on superclass `NSObject`.
66#[cfg(feature = "INIntentResolutionResult")]
67impl INNoteContentTypeResolutionResult {
68    extern_methods!(
69        #[unsafe(method(new))]
70        #[unsafe(method_family = new)]
71        pub unsafe fn new() -> Retained<Self>;
72    );
73}