objc2-car-play 0.3.2

Bindings to the CarPlay framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
#[cfg(feature = "objc2-ui-kit")]
use objc2_ui_kit::*;

use crate::*;

/// [Apple's documentation](https://developer.apple.com/documentation/carplay/cpmaneuvertype?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct CPManeuverType(pub NSUInteger);
impl CPManeuverType {
    #[doc(alias = "CPManeuverTypeNoTurn")]
    pub const NoTurn: Self = Self(0);
    #[doc(alias = "CPManeuverTypeLeftTurn")]
    pub const LeftTurn: Self = Self(1);
    #[doc(alias = "CPManeuverTypeRightTurn")]
    pub const RightTurn: Self = Self(2);
    #[doc(alias = "CPManeuverTypeStraightAhead")]
    pub const StraightAhead: Self = Self(3);
    #[doc(alias = "CPManeuverTypeUTurn")]
    pub const UTurn: Self = Self(4);
    #[doc(alias = "CPManeuverTypeFollowRoad")]
    pub const FollowRoad: Self = Self(5);
    #[doc(alias = "CPManeuverTypeEnterRoundabout")]
    pub const EnterRoundabout: Self = Self(6);
    #[doc(alias = "CPManeuverTypeExitRoundabout")]
    pub const ExitRoundabout: Self = Self(7);
    #[doc(alias = "CPManeuverTypeOffRamp")]
    pub const OffRamp: Self = Self(8);
    #[doc(alias = "CPManeuverTypeOnRamp")]
    pub const OnRamp: Self = Self(9);
    #[doc(alias = "CPManeuverTypeArriveEndOfNavigation")]
    pub const ArriveEndOfNavigation: Self = Self(10);
    #[doc(alias = "CPManeuverTypeStartRoute")]
    pub const StartRoute: Self = Self(11);
    #[doc(alias = "CPManeuverTypeArriveAtDestination")]
    pub const ArriveAtDestination: Self = Self(12);
    #[doc(alias = "CPManeuverTypeKeepLeft")]
    pub const KeepLeft: Self = Self(13);
    #[doc(alias = "CPManeuverTypeKeepRight")]
    pub const KeepRight: Self = Self(14);
    #[doc(alias = "CPManeuverTypeEnter_Ferry")]
    pub const Enter_Ferry: Self = Self(15);
    #[doc(alias = "CPManeuverTypeExitFerry")]
    pub const ExitFerry: Self = Self(16);
    #[doc(alias = "CPManeuverTypeChangeFerry")]
    pub const ChangeFerry: Self = Self(17);
    #[doc(alias = "CPManeuverTypeStartRouteWithUTurn")]
    pub const StartRouteWithUTurn: Self = Self(18);
    #[doc(alias = "CPManeuverTypeUTurnAtRoundabout")]
    pub const UTurnAtRoundabout: Self = Self(19);
    #[doc(alias = "CPManeuverTypeLeftTurnAtEnd")]
    pub const LeftTurnAtEnd: Self = Self(20);
    #[doc(alias = "CPManeuverTypeRightTurnAtEnd")]
    pub const RightTurnAtEnd: Self = Self(21);
    #[doc(alias = "CPManeuverTypeHighwayOffRampLeft")]
    pub const HighwayOffRampLeft: Self = Self(22);
    #[doc(alias = "CPManeuverTypeHighwayOffRampRight")]
    pub const HighwayOffRampRight: Self = Self(23);
    #[doc(alias = "CPManeuverTypeArriveAtDestinationLeft")]
    pub const ArriveAtDestinationLeft: Self = Self(24);
    #[doc(alias = "CPManeuverTypeArriveAtDestinationRight")]
    pub const ArriveAtDestinationRight: Self = Self(25);
    #[doc(alias = "CPManeuverTypeUTurnWhenPossible")]
    pub const UTurnWhenPossible: Self = Self(26);
    #[doc(alias = "CPManeuverTypeArriveEndOfDirections")]
    pub const ArriveEndOfDirections: Self = Self(27);
    #[doc(alias = "CPManeuverTypeRoundaboutExit1")]
    pub const RoundaboutExit1: Self = Self(28);
    #[doc(alias = "CPManeuverTypeRoundaboutExit2")]
    pub const RoundaboutExit2: Self = Self(29);
    #[doc(alias = "CPManeuverTypeRoundaboutExit3")]
    pub const RoundaboutExit3: Self = Self(30);
    #[doc(alias = "CPManeuverTypeRoundaboutExit4")]
    pub const RoundaboutExit4: Self = Self(31);
    #[doc(alias = "CPManeuverTypeRoundaboutExit5")]
    pub const RoundaboutExit5: Self = Self(32);
    #[doc(alias = "CPManeuverTypeRoundaboutExit6")]
    pub const RoundaboutExit6: Self = Self(33);
    #[doc(alias = "CPManeuverTypeRoundaboutExit7")]
    pub const RoundaboutExit7: Self = Self(34);
    #[doc(alias = "CPManeuverTypeRoundaboutExit8")]
    pub const RoundaboutExit8: Self = Self(35);
    #[doc(alias = "CPManeuverTypeRoundaboutExit9")]
    pub const RoundaboutExit9: Self = Self(36);
    #[doc(alias = "CPManeuverTypeRoundaboutExit10")]
    pub const RoundaboutExit10: Self = Self(37);
    #[doc(alias = "CPManeuverTypeRoundaboutExit11")]
    pub const RoundaboutExit11: Self = Self(38);
    #[doc(alias = "CPManeuverTypeRoundaboutExit12")]
    pub const RoundaboutExit12: Self = Self(39);
    #[doc(alias = "CPManeuverTypeRoundaboutExit13")]
    pub const RoundaboutExit13: Self = Self(40);
    #[doc(alias = "CPManeuverTypeRoundaboutExit14")]
    pub const RoundaboutExit14: Self = Self(41);
    #[doc(alias = "CPManeuverTypeRoundaboutExit15")]
    pub const RoundaboutExit15: Self = Self(42);
    #[doc(alias = "CPManeuverTypeRoundaboutExit16")]
    pub const RoundaboutExit16: Self = Self(43);
    #[doc(alias = "CPManeuverTypeRoundaboutExit17")]
    pub const RoundaboutExit17: Self = Self(44);
    #[doc(alias = "CPManeuverTypeRoundaboutExit18")]
    pub const RoundaboutExit18: Self = Self(45);
    #[doc(alias = "CPManeuverTypeRoundaboutExit19")]
    pub const RoundaboutExit19: Self = Self(46);
    #[doc(alias = "CPManeuverTypeSharpLeftTurn")]
    pub const SharpLeftTurn: Self = Self(47);
    #[doc(alias = "CPManeuverTypeSharpRightTurn")]
    pub const SharpRightTurn: Self = Self(48);
    #[doc(alias = "CPManeuverTypeSlightLeftTurn")]
    pub const SlightLeftTurn: Self = Self(49);
    #[doc(alias = "CPManeuverTypeSlightRightTurn")]
    pub const SlightRightTurn: Self = Self(50);
    #[doc(alias = "CPManeuverTypeChangeHighway")]
    pub const ChangeHighway: Self = Self(51);
    #[doc(alias = "CPManeuverTypeChangeHighwayLeft")]
    pub const ChangeHighwayLeft: Self = Self(52);
    #[doc(alias = "CPManeuverTypeChangeHighwayRight")]
    pub const ChangeHighwayRight: Self = Self(53);
}

unsafe impl Encode for CPManeuverType {
    const ENCODING: Encoding = NSUInteger::ENCODING;
}

unsafe impl RefEncode for CPManeuverType {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// [Apple's documentation](https://developer.apple.com/documentation/carplay/cpjunctiontype?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct CPJunctionType(pub NSUInteger);
impl CPJunctionType {
    #[doc(alias = "CPJunctionTypeIntersection")]
    pub const Intersection: Self = Self(0);
    #[doc(alias = "CPJunctionTypeRoundabout")]
    pub const Roundabout: Self = Self(1);
}

unsafe impl Encode for CPJunctionType {
    const ENCODING: Encoding = NSUInteger::ENCODING;
}

unsafe impl RefEncode for CPJunctionType {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// [Apple's documentation](https://developer.apple.com/documentation/carplay/cptrafficside?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct CPTrafficSide(pub NSUInteger);
impl CPTrafficSide {
    #[doc(alias = "CPTrafficSideRight")]
    pub const Right: Self = Self(0);
    #[doc(alias = "CPTrafficSideLeft")]
    pub const Left: Self = Self(1);
}

unsafe impl Encode for CPTrafficSide {
    const ENCODING: Encoding = NSUInteger::ENCODING;
}

unsafe impl RefEncode for CPTrafficSide {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// [Apple's documentation](https://developer.apple.com/documentation/carplay/cpmaneuverstate?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct CPManeuverState(pub NSInteger);
impl CPManeuverState {
    #[doc(alias = "CPManeuverStateContinue")]
    pub const Continue: Self = Self(0);
    #[doc(alias = "CPManeuverStateInitial")]
    pub const Initial: Self = Self(1);
    #[doc(alias = "CPManeuverStatePrepare")]
    pub const Prepare: Self = Self(2);
    #[doc(alias = "CPManeuverStateExecute")]
    pub const Execute: Self = Self(3);
}

unsafe impl Encode for CPManeuverState {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for CPManeuverState {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

extern_class!(
    /// `CPManeuver`describes a navigation instruction.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/carplay/cpmaneuver?language=objc)
    #[unsafe(super(NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct CPManeuver;
);

extern_conformance!(
    unsafe impl NSCoding for CPManeuver {}
);

extern_conformance!(
    unsafe impl NSCopying for CPManeuver {}
);

unsafe impl CopyingHelper for CPManeuver {
    type Result = Self;
}

extern_conformance!(
    unsafe impl NSObjectProtocol for CPManeuver {}
);

extern_conformance!(
    unsafe impl NSSecureCoding for CPManeuver {}
);

impl CPManeuver {
    extern_methods!(
        #[cfg(feature = "CPImageSet")]
        /// symbolSet is a
        /// `CPImageSet`representing the maneuver.
        #[deprecated]
        #[unsafe(method(symbolSet))]
        #[unsafe(method_family = none)]
        pub unsafe fn symbolSet(&self) -> Option<Retained<CPImageSet>>;

        #[cfg(feature = "CPImageSet")]
        /// Setter for [`symbolSet`][Self::symbolSet].
        #[deprecated]
        #[unsafe(method(setSymbolSet:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setSymbolSet(&self, symbol_set: Option<&CPImageSet>);

        #[cfg(feature = "objc2-ui-kit")]
        /// Takes precedence over
        /// `guidanceBackgroundColor`set in
        /// `CPMapTemplate.`
        #[unsafe(method(cardBackgroundColor))]
        #[unsafe(method_family = none)]
        pub unsafe fn cardBackgroundColor(&self) -> Option<Retained<UIColor>>;

        #[cfg(feature = "objc2-ui-kit")]
        /// Setter for [`cardBackgroundColor`][Self::cardBackgroundColor].
        #[unsafe(method(setCardBackgroundColor:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setCardBackgroundColor(&self, card_background_color: Option<&UIColor>);

        #[cfg(feature = "objc2-ui-kit")]
        /// symbolImage is a
        /// `UIImage`representing the maneuver. Provide variants for UIUserInterfaceStyleLight and UIUserInterfaceStyleDark that will be used against light backgrounds and dark backgrounds.
        #[unsafe(method(symbolImage))]
        #[unsafe(method_family = none)]
        pub unsafe fn symbolImage(&self) -> Option<Retained<UIImage>>;

        #[cfg(feature = "objc2-ui-kit")]
        /// Setter for [`symbolImage`][Self::symbolImage].
        #[unsafe(method(setSymbolImage:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setSymbolImage(&self, symbol_image: Option<&UIImage>);

        #[cfg(feature = "objc2-ui-kit")]
        /// junctionImage is a
        /// `UIImage`used to display a junction for the maneuver.
        ///
        ///
        /// Note: The maximum image size is 140 points by 100 points. If necessary, images will be scaled down to fit while maintaining the aspect ratio.
        #[unsafe(method(junctionImage))]
        #[unsafe(method_family = none)]
        pub unsafe fn junctionImage(&self) -> Option<Retained<UIImage>>;

        #[cfg(feature = "objc2-ui-kit")]
        /// Setter for [`junctionImage`][Self::junctionImage].
        #[unsafe(method(setJunctionImage:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setJunctionImage(&self, junction_image: Option<&UIImage>);

        /// instructionVariants is an array of
        /// `NSString`representing the instruction for this maneuver, arranged from most to least preferred. You must provide at least one variant.
        /// The variant strings should be provided as localized, displayable content.
        #[unsafe(method(instructionVariants))]
        #[unsafe(method_family = none)]
        pub unsafe fn instructionVariants(&self) -> Retained<NSArray<NSString>>;

        /// Setter for [`instructionVariants`][Self::instructionVariants].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[unsafe(method(setInstructionVariants:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setInstructionVariants(&self, instruction_variants: &NSArray<NSString>);

        #[cfg(feature = "CPTravelEstimates")]
        /// initialTravelEstimates represents the estimates beginning from the end of the preceding maneuver.
        #[unsafe(method(initialTravelEstimates))]
        #[unsafe(method_family = none)]
        pub unsafe fn initialTravelEstimates(&self) -> Option<Retained<CPTravelEstimates>>;

        #[cfg(feature = "CPTravelEstimates")]
        /// Setter for [`initialTravelEstimates`][Self::initialTravelEstimates].
        #[unsafe(method(setInitialTravelEstimates:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setInitialTravelEstimates(
            &self,
            initial_travel_estimates: Option<&CPTravelEstimates>,
        );

        /// attributedInstructionVariants is an array of
        /// `NSAttributedString`representing the instruction for this maneuver,
        /// arranged from most to least preferred.
        ///
        /// `attributedInstructionVariants`will be preferred over instructionVariants. You must provide at least one variant for each maneuver.
        ///
        /// Only one type of attribute is presently supported: text attachments. You may annotate a maneuver instruction with images
        /// by including one or more text attachments. The maximum text attachment image size is 64x25 points.
        ///
        ///
        /// Warning: All attributes other than text attachment attributes will be removed from your attributed string.
        ///
        ///
        /// See: +[NSAttributedString attributedStringWithAttachment:], -[NSTextAttachment image]
        #[unsafe(method(attributedInstructionVariants))]
        #[unsafe(method_family = none)]
        pub unsafe fn attributedInstructionVariants(&self)
            -> Retained<NSArray<NSAttributedString>>;

        /// Setter for [`attributedInstructionVariants`][Self::attributedInstructionVariants].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[unsafe(method(setAttributedInstructionVariants:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setAttributedInstructionVariants(
            &self,
            attributed_instruction_variants: &NSArray<NSAttributedString>,
        );

        #[cfg(feature = "objc2-ui-kit")]
        /// dashboardSymbolImage is a
        /// `UIImage`representing the maneuver that will be used on the dashboard. Provide variants for UIUserInterfaceStyleLight and UIUserInterfaceStyleDark that will be used against light backgrounds and dark backgrounds. If no dashboard image
        /// is provided, symbolImage will be used.
        #[unsafe(method(dashboardSymbolImage))]
        #[unsafe(method_family = none)]
        pub unsafe fn dashboardSymbolImage(&self) -> Option<Retained<UIImage>>;

        #[cfg(feature = "objc2-ui-kit")]
        /// Setter for [`dashboardSymbolImage`][Self::dashboardSymbolImage].
        #[unsafe(method(setDashboardSymbolImage:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setDashboardSymbolImage(&self, dashboard_symbol_image: Option<&UIImage>);

        #[cfg(feature = "objc2-ui-kit")]
        /// dashboardJunctionImage is a
        /// `UIImage`used to display a junction for the maneuver on the dashboard. If no dashboard junction image is provided, junctionImage will be used.
        ///
        ///
        /// Note: The maximum image size is 140 points by 100 points. If necessary, images will be scaled down to fit while maintaining the aspect ratio.
        #[unsafe(method(dashboardJunctionImage))]
        #[unsafe(method_family = none)]
        pub unsafe fn dashboardJunctionImage(&self) -> Option<Retained<UIImage>>;

        #[cfg(feature = "objc2-ui-kit")]
        /// Setter for [`dashboardJunctionImage`][Self::dashboardJunctionImage].
        #[unsafe(method(setDashboardJunctionImage:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setDashboardJunctionImage(&self, dashboard_junction_image: Option<&UIImage>);

        /// dashboardInstructionVariants is an array of
        /// `NSString`representing the instruction for this maneuver on the dashboard, arranged from most to least preferred. If no dashboard variants are provided, the system will check for attributedInstructionVariants, then instructionVariants.
        /// The variant strings should be provided as localized, displayable content.
        #[unsafe(method(dashboardInstructionVariants))]
        #[unsafe(method_family = none)]
        pub unsafe fn dashboardInstructionVariants(&self) -> Retained<NSArray<NSString>>;

        /// Setter for [`dashboardInstructionVariants`][Self::dashboardInstructionVariants].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[unsafe(method(setDashboardInstructionVariants:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setDashboardInstructionVariants(
            &self,
            dashboard_instruction_variants: &NSArray<NSString>,
        );

        /// dashboardAttributedInstructionVariants is an array of
        /// `NSAttributedString`representing the instruction for this maneuver on the dashboard,
        /// arranged from most to least preferred.
        ///
        /// `dashboardAttributedInstructionVariants`will be preferred over dashboardInstructionVariants. If no dashboard attributed variants are provided, dashboardInstructionVariants will be used.
        ///
        /// Only one type of attribute is presently supported: text attachments. You may annotate a maneuver instruction with images
        /// by including one or more text attachments. The maximum text attachment image size is 64x25 points.
        ///
        ///
        /// Warning: All attributes other than text attachment attributes will be removed from your attributed string.
        ///
        ///
        /// See: +[NSAttributedString attributedStringWithAttachment:], -[NSTextAttachment image]
        #[unsafe(method(dashboardAttributedInstructionVariants))]
        #[unsafe(method_family = none)]
        pub unsafe fn dashboardAttributedInstructionVariants(
            &self,
        ) -> Retained<NSArray<NSAttributedString>>;

        /// Setter for [`dashboardAttributedInstructionVariants`][Self::dashboardAttributedInstructionVariants].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[unsafe(method(setDashboardAttributedInstructionVariants:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setDashboardAttributedInstructionVariants(
            &self,
            dashboard_attributed_instruction_variants: &NSArray<NSAttributedString>,
        );

        #[cfg(feature = "objc2-ui-kit")]
        /// notificationSymbolImage is a
        /// `UIImage`representing the maneuver that will be used in a notification banner. Provide variants for UIUserInterfaceStyleLight and UIUserInterfaceStyleDark that will be used against light backgrounds and dark backgrounds. If no
        /// notification symbol image is provided, symbolImage will be used.
        #[unsafe(method(notificationSymbolImage))]
        #[unsafe(method_family = none)]
        pub unsafe fn notificationSymbolImage(&self) -> Option<Retained<UIImage>>;

        #[cfg(feature = "objc2-ui-kit")]
        /// Setter for [`notificationSymbolImage`][Self::notificationSymbolImage].
        #[unsafe(method(setNotificationSymbolImage:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setNotificationSymbolImage(
            &self,
            notification_symbol_image: Option<&UIImage>,
        );

        /// notificationInstructionVariants is an array of
        /// `NSString`representing the instruction for this maneuver in a notification banner, arranged from most to least preferred. If no notification instruction variants are provided, the system will check for attributedInstructionVariants, then instructionVariants.
        /// The variant strings should be provided as localized, displayable content.
        #[unsafe(method(notificationInstructionVariants))]
        #[unsafe(method_family = none)]
        pub unsafe fn notificationInstructionVariants(&self) -> Retained<NSArray<NSString>>;

        /// Setter for [`notificationInstructionVariants`][Self::notificationInstructionVariants].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[unsafe(method(setNotificationInstructionVariants:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setNotificationInstructionVariants(
            &self,
            notification_instruction_variants: &NSArray<NSString>,
        );

        /// notificationAttributedInstructionVariants is an array of
        /// `NSAttributedString`representing the instruction for this maneuver in a notification banner,
        /// arranged from most to least preferred.
        ///
        /// `notificationAttributedInstructionVariants`will be preferred over instructionVariants. If no notification attributed variants are provided, notificationInstructionVariants will be used.
        ///
        /// Only one type of attribute is presently supported: text attachments. You may annotate a maneuver instruction with images
        /// by including one or more text attachments. The maximum text attachment image size is 64x25 points.
        ///
        ///
        /// Warning: All attributes other than text attachment attributes will be removed from your attributed string.
        ///
        ///
        /// See: +[NSAttributedString attributedStringWithAttachment:], -[NSTextAttachment image]
        #[unsafe(method(notificationAttributedInstructionVariants))]
        #[unsafe(method_family = none)]
        pub unsafe fn notificationAttributedInstructionVariants(
            &self,
        ) -> Retained<NSArray<NSAttributedString>>;

        /// Setter for [`notificationAttributedInstructionVariants`][Self::notificationAttributedInstructionVariants].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[unsafe(method(setNotificationAttributedInstructionVariants:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setNotificationAttributedInstructionVariants(
            &self,
            notification_attributed_instruction_variants: &NSArray<NSAttributedString>,
        );

        /// maneuverType is a
        /// `CPManeuverType`representing the type of maneuver.
        #[unsafe(method(maneuverType))]
        #[unsafe(method_family = none)]
        pub unsafe fn maneuverType(&self) -> CPManeuverType;

        /// Setter for [`maneuverType`][Self::maneuverType].
        #[unsafe(method(setManeuverType:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setManeuverType(&self, maneuver_type: CPManeuverType);

        /// roadFollowingManeuverVariants is an array of
        /// `NSString`representing the name of the road following this maneuver,
        /// arranged from most to least preferred. (arranged by space)
        #[unsafe(method(roadFollowingManeuverVariants))]
        #[unsafe(method_family = none)]
        pub unsafe fn roadFollowingManeuverVariants(&self) -> Option<Retained<NSArray<NSString>>>;

        /// Setter for [`roadFollowingManeuverVariants`][Self::roadFollowingManeuverVariants].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[unsafe(method(setRoadFollowingManeuverVariants:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setRoadFollowingManeuverVariants(
            &self,
            road_following_maneuver_variants: Option<&NSArray<NSString>>,
        );

        /// trafficSide is a
        /// `CPTrafficSide`representing which side of the road the traffic drives on.
        #[unsafe(method(trafficSide))]
        #[unsafe(method_family = none)]
        pub unsafe fn trafficSide(&self) -> CPTrafficSide;

        /// Setter for [`trafficSide`][Self::trafficSide].
        #[unsafe(method(setTrafficSide:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setTrafficSide(&self, traffic_side: CPTrafficSide);

        /// junctionType is a
        /// `CPJunctionType`representing the type of the junction associated with this maneuver
        #[unsafe(method(junctionType))]
        #[unsafe(method_family = none)]
        pub unsafe fn junctionType(&self) -> CPJunctionType;

        /// Setter for [`junctionType`][Self::junctionType].
        #[unsafe(method(setJunctionType:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setJunctionType(&self, junction_type: CPJunctionType);

        /// junctionExitAngle is the angle of the exit road of this junction.
        #[unsafe(method(junctionExitAngle))]
        #[unsafe(method_family = none)]
        pub unsafe fn junctionExitAngle(&self) -> Option<Retained<NSMeasurement<NSUnitAngle>>>;

        /// Setter for [`junctionExitAngle`][Self::junctionExitAngle].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[unsafe(method(setJunctionExitAngle:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setJunctionExitAngle(
            &self,
            junction_exit_angle: Option<&NSMeasurement<NSUnitAngle>>,
        );

        /// junctionElementAngles is a set of angles of the rest of the roads of this junction. This must not include
        /// `junctionExitAngle`.
        #[unsafe(method(junctionElementAngles))]
        #[unsafe(method_family = none)]
        pub unsafe fn junctionElementAngles(
            &self,
        ) -> Option<Retained<NSSet<NSMeasurement<NSUnitAngle>>>>;

        /// Setter for [`junctionElementAngles`][Self::junctionElementAngles].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[unsafe(method(setJunctionElementAngles:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setJunctionElementAngles(
            &self,
            junction_element_angles: Option<&NSSet<NSMeasurement<NSUnitAngle>>>,
        );

        #[cfg(feature = "CPLaneGuidance")]
        /// linkedLaneGuidance is the optional
        /// `CPLaneGuidance`associated with this maneuver // conditional - must be there if there is a corresponding lane guidance
        ///
        /// # Safety
        ///
        /// This is not retained internally, you must ensure the object is still alive.
        #[unsafe(method(linkedLaneGuidance))]
        #[unsafe(method_family = none)]
        pub unsafe fn linkedLaneGuidance(&self) -> Retained<CPLaneGuidance>;

        #[cfg(feature = "CPLaneGuidance")]
        /// Setter for [`linkedLaneGuidance`][Self::linkedLaneGuidance].
        ///
        /// # Safety
        ///
        /// This is unretained, you must ensure the object is kept alive while in use.
        #[unsafe(method(setLinkedLaneGuidance:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setLinkedLaneGuidance(&self, linked_lane_guidance: &CPLaneGuidance);

        /// highwayExitLabel is a
        /// `NSString`describing a highway exit. Exit 123 for example.
        #[unsafe(method(highwayExitLabel))]
        #[unsafe(method_family = none)]
        pub unsafe fn highwayExitLabel(&self) -> Retained<NSString>;

        /// Setter for [`highwayExitLabel`][Self::highwayExitLabel].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[unsafe(method(setHighwayExitLabel:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setHighwayExitLabel(&self, highway_exit_label: &NSString);

        /// Any custom user info related to this maneuver.
        #[unsafe(method(userInfo))]
        #[unsafe(method_family = none)]
        pub unsafe fn userInfo(&self) -> Option<Retained<AnyObject>>;

        /// Setter for [`userInfo`][Self::userInfo].
        ///
        /// # Safety
        ///
        /// `user_info` should be of the correct type.
        #[unsafe(method(setUserInfo:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setUserInfo(&self, user_info: Option<&AnyObject>);
    );
}

/// Methods declared on superclass `NSObject`.
impl CPManeuver {
    extern_methods!(
        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;
    );
}