objc2_intents/generated/
INDoubleResolutionResult.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(INIntentResolutionResult, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(feature = "INIntentResolutionResult")]
15 pub struct INDoubleResolutionResult;
16);
17
18#[cfg(feature = "INIntentResolutionResult")]
19extern_conformance!(
20 unsafe impl NSObjectProtocol for INDoubleResolutionResult {}
21);
22
23#[cfg(feature = "INIntentResolutionResult")]
24impl INDoubleResolutionResult {
25 extern_methods!(
26 #[unsafe(method(successWithResolvedValue:))]
27 #[unsafe(method_family = none)]
28 pub unsafe fn successWithResolvedValue(resolved_value: c_double) -> Retained<Self>;
29
30 #[unsafe(method(confirmationRequiredWithValueToConfirm:))]
31 #[unsafe(method_family = none)]
32 pub unsafe fn confirmationRequiredWithValueToConfirm(
33 value_to_confirm: Option<&NSNumber>,
34 ) -> Retained<Self>;
35 );
36}
37
38#[cfg(feature = "INIntentResolutionResult")]
40impl INDoubleResolutionResult {
41 extern_methods!(
42 #[unsafe(method(init))]
43 #[unsafe(method_family = init)]
44 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
45
46 #[unsafe(method(needsValue))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn needsValue() -> Retained<Self>;
49
50 #[unsafe(method(notRequired))]
51 #[unsafe(method_family = none)]
52 pub unsafe fn notRequired() -> Retained<Self>;
53
54 #[unsafe(method(unsupported))]
55 #[unsafe(method_family = none)]
56 pub unsafe fn unsupported() -> Retained<Self>;
57 );
58}
59
60#[cfg(feature = "INIntentResolutionResult")]
62impl INDoubleResolutionResult {
63 extern_methods!(
64 #[unsafe(method(new))]
65 #[unsafe(method_family = new)]
66 pub unsafe fn new() -> Retained<Self>;
67 );
68}