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