objc2_intents/generated/
INBooleanResolutionResult.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 INBooleanResolutionResult;
15);
16
17#[cfg(feature = "INIntentResolutionResult")]
18extern_conformance!(
19 unsafe impl NSObjectProtocol for INBooleanResolutionResult {}
20);
21
22#[cfg(feature = "INIntentResolutionResult")]
23impl INBooleanResolutionResult {
24 extern_methods!(
25 #[unsafe(method(successWithResolvedValue:))]
26 #[unsafe(method_family = none)]
27 pub unsafe fn successWithResolvedValue(resolved_value: bool) -> Retained<Self>;
28
29 #[unsafe(method(confirmationRequiredWithValueToConfirm:))]
30 #[unsafe(method_family = none)]
31 pub unsafe fn confirmationRequiredWithValueToConfirm(
32 value_to_confirm: Option<&NSNumber>,
33 ) -> Retained<Self>;
34 );
35}
36
37#[cfg(feature = "INIntentResolutionResult")]
39impl INBooleanResolutionResult {
40 extern_methods!(
41 #[unsafe(method(init))]
42 #[unsafe(method_family = init)]
43 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
44
45 #[unsafe(method(needsValue))]
46 #[unsafe(method_family = none)]
47 pub unsafe fn needsValue() -> Retained<Self>;
48
49 #[unsafe(method(notRequired))]
50 #[unsafe(method_family = none)]
51 pub unsafe fn notRequired() -> Retained<Self>;
52
53 #[unsafe(method(unsupported))]
54 #[unsafe(method_family = none)]
55 pub unsafe fn unsupported() -> Retained<Self>;
56 );
57}
58
59#[cfg(feature = "INIntentResolutionResult")]
61impl INBooleanResolutionResult {
62 extern_methods!(
63 #[unsafe(method(new))]
64 #[unsafe(method_family = new)]
65 pub unsafe fn new() -> Retained<Self>;
66 );
67}