objc2_intents/generated/
INWorkoutLocationTypeResolutionResult.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9 #[unsafe(super(INIntentResolutionResult, NSObject))]
11 #[derive(Debug, PartialEq, Eq, Hash)]
12 #[cfg(feature = "INIntentResolutionResult")]
13 pub struct INWorkoutLocationTypeResolutionResult;
14);
15
16#[cfg(feature = "INIntentResolutionResult")]
17extern_conformance!(
18 unsafe impl NSObjectProtocol for INWorkoutLocationTypeResolutionResult {}
19);
20
21#[cfg(feature = "INIntentResolutionResult")]
22impl INWorkoutLocationTypeResolutionResult {
23 extern_methods!(
24 #[cfg(feature = "INWorkoutLocationType")]
25 #[unsafe(method(successWithResolvedWorkoutLocationType:))]
26 #[unsafe(method_family = none)]
27 pub unsafe fn successWithResolvedWorkoutLocationType(
28 resolved_workout_location_type: INWorkoutLocationType,
29 ) -> Retained<Self>;
30
31 #[cfg(feature = "INWorkoutLocationType")]
32 #[deprecated]
33 #[unsafe(method(successWithResolvedValue:))]
34 #[unsafe(method_family = none)]
35 pub unsafe fn successWithResolvedValue(
36 resolved_value: INWorkoutLocationType,
37 ) -> Retained<Self>;
38
39 #[cfg(feature = "INWorkoutLocationType")]
40 #[unsafe(method(confirmationRequiredWithWorkoutLocationTypeToConfirm:))]
41 #[unsafe(method_family = none)]
42 pub unsafe fn confirmationRequiredWithWorkoutLocationTypeToConfirm(
43 workout_location_type_to_confirm: INWorkoutLocationType,
44 ) -> Retained<Self>;
45
46 #[cfg(feature = "INWorkoutLocationType")]
47 #[deprecated]
48 #[unsafe(method(confirmationRequiredWithValueToConfirm:))]
49 #[unsafe(method_family = none)]
50 pub unsafe fn confirmationRequiredWithValueToConfirm(
51 value_to_confirm: INWorkoutLocationType,
52 ) -> Retained<Self>;
53 );
54}
55
56#[cfg(feature = "INIntentResolutionResult")]
58impl INWorkoutLocationTypeResolutionResult {
59 extern_methods!(
60 #[unsafe(method(init))]
61 #[unsafe(method_family = init)]
62 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
63
64 #[unsafe(method(needsValue))]
65 #[unsafe(method_family = none)]
66 pub unsafe fn needsValue() -> Retained<Self>;
67
68 #[unsafe(method(notRequired))]
69 #[unsafe(method_family = none)]
70 pub unsafe fn notRequired() -> Retained<Self>;
71
72 #[unsafe(method(unsupported))]
73 #[unsafe(method_family = none)]
74 pub unsafe fn unsupported() -> Retained<Self>;
75 );
76}
77
78#[cfg(feature = "INIntentResolutionResult")]
80impl INWorkoutLocationTypeResolutionResult {
81 extern_methods!(
82 #[unsafe(method(new))]
83 #[unsafe(method_family = new)]
84 pub unsafe fn new() -> Retained<Self>;
85 );
86}