objc2_intents/generated/
INRideOption.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/intents/inrideoption?language=objc)
12    #[unsafe(super(NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    pub struct INRideOption;
15);
16
17extern_conformance!(
18    unsafe impl NSCoding for INRideOption {}
19);
20
21extern_conformance!(
22    unsafe impl NSCopying for INRideOption {}
23);
24
25unsafe impl CopyingHelper for INRideOption {
26    type Result = Self;
27}
28
29extern_conformance!(
30    unsafe impl NSObjectProtocol for INRideOption {}
31);
32
33extern_conformance!(
34    unsafe impl NSSecureCoding for INRideOption {}
35);
36
37impl INRideOption {
38    extern_methods!(
39        #[unsafe(method(init))]
40        #[unsafe(method_family = init)]
41        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
42
43        #[unsafe(method(initWithName:estimatedPickupDate:))]
44        #[unsafe(method_family = init)]
45        pub unsafe fn initWithName_estimatedPickupDate(
46            this: Allocated<Self>,
47            name: &NSString,
48            estimated_pickup_date: &NSDate,
49        ) -> Retained<Self>;
50
51        /// # Safety
52        ///
53        /// `decoder` possibly has further requirements.
54        #[unsafe(method(initWithCoder:))]
55        #[unsafe(method_family = init)]
56        pub unsafe fn initWithCoder(
57            this: Allocated<Self>,
58            decoder: &NSCoder,
59        ) -> Option<Retained<Self>>;
60
61        #[unsafe(method(name))]
62        #[unsafe(method_family = none)]
63        pub unsafe fn name(&self) -> Retained<NSString>;
64
65        /// Setter for [`name`][Self::name].
66        ///
67        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
68        #[unsafe(method(setName:))]
69        #[unsafe(method_family = none)]
70        pub unsafe fn setName(&self, name: &NSString);
71
72        #[unsafe(method(estimatedPickupDate))]
73        #[unsafe(method_family = none)]
74        pub unsafe fn estimatedPickupDate(&self) -> Retained<NSDate>;
75
76        /// Setter for [`estimatedPickupDate`][Self::estimatedPickupDate].
77        ///
78        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
79        #[unsafe(method(setEstimatedPickupDate:))]
80        #[unsafe(method_family = none)]
81        pub unsafe fn setEstimatedPickupDate(&self, estimated_pickup_date: &NSDate);
82
83        #[cfg(feature = "INPriceRange")]
84        #[unsafe(method(priceRange))]
85        #[unsafe(method_family = none)]
86        pub unsafe fn priceRange(&self) -> Option<Retained<INPriceRange>>;
87
88        #[cfg(feature = "INPriceRange")]
89        /// Setter for [`priceRange`][Self::priceRange].
90        ///
91        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
92        #[unsafe(method(setPriceRange:))]
93        #[unsafe(method_family = none)]
94        pub unsafe fn setPriceRange(&self, price_range: Option<&INPriceRange>);
95
96        #[unsafe(method(usesMeteredFare))]
97        #[unsafe(method_family = none)]
98        pub unsafe fn usesMeteredFare(&self) -> Option<Retained<NSNumber>>;
99
100        /// Setter for [`usesMeteredFare`][Self::usesMeteredFare].
101        ///
102        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
103        #[unsafe(method(setUsesMeteredFare:))]
104        #[unsafe(method_family = none)]
105        pub unsafe fn setUsesMeteredFare(&self, uses_metered_fare: Option<&NSNumber>);
106
107        #[unsafe(method(disclaimerMessage))]
108        #[unsafe(method_family = none)]
109        pub unsafe fn disclaimerMessage(&self) -> Option<Retained<NSString>>;
110
111        /// Setter for [`disclaimerMessage`][Self::disclaimerMessage].
112        ///
113        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
114        #[unsafe(method(setDisclaimerMessage:))]
115        #[unsafe(method_family = none)]
116        pub unsafe fn setDisclaimerMessage(&self, disclaimer_message: Option<&NSString>);
117
118        #[cfg(feature = "INRidePartySizeOption")]
119        #[unsafe(method(availablePartySizeOptions))]
120        #[unsafe(method_family = none)]
121        pub unsafe fn availablePartySizeOptions(
122            &self,
123        ) -> Option<Retained<NSArray<INRidePartySizeOption>>>;
124
125        #[cfg(feature = "INRidePartySizeOption")]
126        /// Setter for [`availablePartySizeOptions`][Self::availablePartySizeOptions].
127        ///
128        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
129        #[unsafe(method(setAvailablePartySizeOptions:))]
130        #[unsafe(method_family = none)]
131        pub unsafe fn setAvailablePartySizeOptions(
132            &self,
133            available_party_size_options: Option<&NSArray<INRidePartySizeOption>>,
134        );
135
136        #[unsafe(method(availablePartySizeOptionsSelectionPrompt))]
137        #[unsafe(method_family = none)]
138        pub unsafe fn availablePartySizeOptionsSelectionPrompt(&self)
139            -> Option<Retained<NSString>>;
140
141        /// Setter for [`availablePartySizeOptionsSelectionPrompt`][Self::availablePartySizeOptionsSelectionPrompt].
142        ///
143        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
144        #[unsafe(method(setAvailablePartySizeOptionsSelectionPrompt:))]
145        #[unsafe(method_family = none)]
146        pub unsafe fn setAvailablePartySizeOptionsSelectionPrompt(
147            &self,
148            available_party_size_options_selection_prompt: Option<&NSString>,
149        );
150
151        #[unsafe(method(specialPricing))]
152        #[unsafe(method_family = none)]
153        pub unsafe fn specialPricing(&self) -> Option<Retained<NSString>>;
154
155        /// Setter for [`specialPricing`][Self::specialPricing].
156        ///
157        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
158        #[unsafe(method(setSpecialPricing:))]
159        #[unsafe(method_family = none)]
160        pub unsafe fn setSpecialPricing(&self, special_pricing: Option<&NSString>);
161
162        #[cfg(feature = "INImage")]
163        #[unsafe(method(specialPricingBadgeImage))]
164        #[unsafe(method_family = none)]
165        pub unsafe fn specialPricingBadgeImage(&self) -> Option<Retained<INImage>>;
166
167        #[cfg(feature = "INImage")]
168        /// Setter for [`specialPricingBadgeImage`][Self::specialPricingBadgeImage].
169        ///
170        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
171        #[unsafe(method(setSpecialPricingBadgeImage:))]
172        #[unsafe(method_family = none)]
173        pub unsafe fn setSpecialPricingBadgeImage(
174            &self,
175            special_pricing_badge_image: Option<&INImage>,
176        );
177
178        #[cfg(feature = "INRideFareLineItem")]
179        #[unsafe(method(fareLineItems))]
180        #[unsafe(method_family = none)]
181        pub unsafe fn fareLineItems(&self) -> Option<Retained<NSArray<INRideFareLineItem>>>;
182
183        #[cfg(feature = "INRideFareLineItem")]
184        /// Setter for [`fareLineItems`][Self::fareLineItems].
185        ///
186        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
187        #[unsafe(method(setFareLineItems:))]
188        #[unsafe(method_family = none)]
189        pub unsafe fn setFareLineItems(
190            &self,
191            fare_line_items: Option<&NSArray<INRideFareLineItem>>,
192        );
193
194        #[unsafe(method(userActivityForBookingInApplication))]
195        #[unsafe(method_family = none)]
196        pub unsafe fn userActivityForBookingInApplication(
197            &self,
198        ) -> Option<Retained<NSUserActivity>>;
199
200        /// Setter for [`userActivityForBookingInApplication`][Self::userActivityForBookingInApplication].
201        #[unsafe(method(setUserActivityForBookingInApplication:))]
202        #[unsafe(method_family = none)]
203        pub unsafe fn setUserActivityForBookingInApplication(
204            &self,
205            user_activity_for_booking_in_application: Option<&NSUserActivity>,
206        );
207    );
208}
209
210/// Methods declared on superclass `NSObject`.
211impl INRideOption {
212    extern_methods!(
213        #[unsafe(method(new))]
214        #[unsafe(method_family = new)]
215        pub unsafe fn new() -> Retained<Self>;
216    );
217}
218
219/// Deprecated.
220impl INRideOption {
221    extern_methods!(
222        #[unsafe(method(identifier))]
223        #[unsafe(method_family = none)]
224        pub unsafe fn identifier(&self) -> Option<Retained<NSString>>;
225
226        /// Setter for [`identifier`][Self::identifier].
227        ///
228        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
229        #[unsafe(method(setIdentifier:))]
230        #[unsafe(method_family = none)]
231        pub unsafe fn setIdentifier(&self, identifier: Option<&NSString>);
232    );
233}