objc2_intents/generated/
INStringResolutionResult.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(INIntentResolutionResult, NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 #[cfg(feature = "INIntentResolutionResult")]
14 pub struct INStringResolutionResult;
15);
16
17#[cfg(feature = "INIntentResolutionResult")]
18extern_conformance!(
19 unsafe impl NSObjectProtocol for INStringResolutionResult {}
20);
21
22#[cfg(feature = "INIntentResolutionResult")]
23impl INStringResolutionResult {
24 extern_methods!(
25 #[unsafe(method(successWithResolvedString:))]
26 #[unsafe(method_family = none)]
27 pub unsafe fn successWithResolvedString(resolved_string: &NSString) -> Retained<Self>;
28
29 #[unsafe(method(disambiguationWithStringsToDisambiguate:))]
30 #[unsafe(method_family = none)]
31 pub unsafe fn disambiguationWithStringsToDisambiguate(
32 strings_to_disambiguate: &NSArray<NSString>,
33 ) -> Retained<Self>;
34
35 #[unsafe(method(confirmationRequiredWithStringToConfirm:))]
36 #[unsafe(method_family = none)]
37 pub unsafe fn confirmationRequiredWithStringToConfirm(
38 string_to_confirm: Option<&NSString>,
39 ) -> Retained<Self>;
40 );
41}
42
43#[cfg(feature = "INIntentResolutionResult")]
45impl INStringResolutionResult {
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#[cfg(feature = "INIntentResolutionResult")]
67impl INStringResolutionResult {
68 extern_methods!(
69 #[unsafe(method(new))]
70 #[unsafe(method_family = new)]
71 pub unsafe fn new() -> Retained<Self>;
72 );
73}