objc2_ui_kit/generated/
UITrait.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#[cfg(feature = "objc2-core-foundation")]
6use objc2_core_foundation::*;
7use objc2_foundation::*;
8
9use crate::*;
10
11extern_protocol!(
12    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitraitdefinition?language=objc)
13    pub unsafe trait UITraitDefinition: MainThreadOnly {
14        /// A unique identifier string for the trait (reverse-DNS format recommended).
15        /// Allows the trait to be encoded/decoded, and to map both a Swift and Objective-C trait to the same data.
16        #[optional]
17        #[unsafe(method(identifier))]
18        #[unsafe(method_family = none)]
19        unsafe fn identifier(mtm: MainThreadMarker) -> Retained<NSString>;
20
21        /// A short human-readable name for the trait, e.g. for printing and debugging output.
22        /// By default, the trait's class name is used when not implemented.
23        #[optional]
24        #[unsafe(method(name))]
25        #[unsafe(method_family = none)]
26        unsafe fn name(mtm: MainThreadMarker) -> Retained<NSString>;
27
28        /// Whether the trait is used to resolve dynamic colors (or images), and changes to the trait should
29        /// automatically trigger views using dynamic colors/images to update their appearance. Default is NO.
30        #[optional]
31        #[unsafe(method(affectsColorAppearance))]
32        #[unsafe(method_family = none)]
33        unsafe fn affectsColorAppearance(mtm: MainThreadMarker) -> bool;
34    }
35);
36
37/// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitrait?language=objc)
38pub type UITrait = AnyClass;
39
40extern_protocol!(
41    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uicgfloattraitdefinition?language=objc)
42    pub unsafe trait UICGFloatTraitDefinition: UITraitDefinition + MainThreadOnly {
43        #[cfg(feature = "objc2-core-foundation")]
44        /// The default value for this trait in a trait collection when no value has been set.
45        #[unsafe(method(defaultValue))]
46        #[unsafe(method_family = none)]
47        unsafe fn defaultValue(mtm: MainThreadMarker) -> CGFloat;
48    }
49);
50
51/// [Apple's documentation](https://developer.apple.com/documentation/uikit/uicgfloattrait?language=objc)
52pub type UICGFloatTrait = AnyClass;
53
54extern_protocol!(
55    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uinsintegertraitdefinition?language=objc)
56    pub unsafe trait UINSIntegerTraitDefinition: UITraitDefinition + MainThreadOnly {
57        /// The default value for this trait in a trait collection when no value has been set.
58        #[unsafe(method(defaultValue))]
59        #[unsafe(method_family = none)]
60        unsafe fn defaultValue(mtm: MainThreadMarker) -> NSInteger;
61    }
62);
63
64/// [Apple's documentation](https://developer.apple.com/documentation/uikit/uinsintegertrait?language=objc)
65pub type UINSIntegerTrait = AnyClass;
66
67extern_protocol!(
68    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uiobjecttraitdefinition?language=objc)
69    pub unsafe trait UIObjectTraitDefinition: UITraitDefinition + MainThreadOnly {
70        /// The default value for this trait in a trait collection when no value has been set.
71        #[unsafe(method(defaultValue))]
72        #[unsafe(method_family = none)]
73        unsafe fn defaultValue(
74            mtm: MainThreadMarker,
75        ) -> Option<Retained<ProtocolObject<dyn NSObjectProtocol>>>;
76    }
77);
78
79/// [Apple's documentation](https://developer.apple.com/documentation/uikit/uiobjecttrait?language=objc)
80pub type UIObjectTrait = AnyClass;
81
82extern_class!(
83    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitraituserinterfaceidiom?language=objc)
84    #[unsafe(super(NSObject))]
85    #[thread_kind = MainThreadOnly]
86    #[derive(Debug, PartialEq, Eq, Hash)]
87    pub struct UITraitUserInterfaceIdiom;
88);
89
90extern_conformance!(
91    unsafe impl NSObjectProtocol for UITraitUserInterfaceIdiom {}
92);
93
94extern_conformance!(
95    unsafe impl UINSIntegerTraitDefinition for UITraitUserInterfaceIdiom {}
96);
97
98extern_conformance!(
99    unsafe impl UITraitDefinition for UITraitUserInterfaceIdiom {}
100);
101
102impl UITraitUserInterfaceIdiom {
103    extern_methods!();
104}
105
106/// Methods declared on superclass `NSObject`.
107impl UITraitUserInterfaceIdiom {
108    extern_methods!(
109        #[unsafe(method(init))]
110        #[unsafe(method_family = init)]
111        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
112
113        #[unsafe(method(new))]
114        #[unsafe(method_family = new)]
115        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
116    );
117}
118
119extern_class!(
120    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitraituserinterfacestyle?language=objc)
121    #[unsafe(super(NSObject))]
122    #[thread_kind = MainThreadOnly]
123    #[derive(Debug, PartialEq, Eq, Hash)]
124    pub struct UITraitUserInterfaceStyle;
125);
126
127extern_conformance!(
128    unsafe impl NSObjectProtocol for UITraitUserInterfaceStyle {}
129);
130
131extern_conformance!(
132    unsafe impl UINSIntegerTraitDefinition for UITraitUserInterfaceStyle {}
133);
134
135extern_conformance!(
136    unsafe impl UITraitDefinition for UITraitUserInterfaceStyle {}
137);
138
139impl UITraitUserInterfaceStyle {
140    extern_methods!();
141}
142
143/// Methods declared on superclass `NSObject`.
144impl UITraitUserInterfaceStyle {
145    extern_methods!(
146        #[unsafe(method(init))]
147        #[unsafe(method_family = init)]
148        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
149
150        #[unsafe(method(new))]
151        #[unsafe(method_family = new)]
152        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
153    );
154}
155
156extern_class!(
157    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitraitlayoutdirection?language=objc)
158    #[unsafe(super(NSObject))]
159    #[thread_kind = MainThreadOnly]
160    #[derive(Debug, PartialEq, Eq, Hash)]
161    pub struct UITraitLayoutDirection;
162);
163
164extern_conformance!(
165    unsafe impl NSObjectProtocol for UITraitLayoutDirection {}
166);
167
168extern_conformance!(
169    unsafe impl UINSIntegerTraitDefinition for UITraitLayoutDirection {}
170);
171
172extern_conformance!(
173    unsafe impl UITraitDefinition for UITraitLayoutDirection {}
174);
175
176impl UITraitLayoutDirection {
177    extern_methods!();
178}
179
180/// Methods declared on superclass `NSObject`.
181impl UITraitLayoutDirection {
182    extern_methods!(
183        #[unsafe(method(init))]
184        #[unsafe(method_family = init)]
185        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
186
187        #[unsafe(method(new))]
188        #[unsafe(method_family = new)]
189        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
190    );
191}
192
193extern_class!(
194    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitraitdisplayscale?language=objc)
195    #[unsafe(super(NSObject))]
196    #[thread_kind = MainThreadOnly]
197    #[derive(Debug, PartialEq, Eq, Hash)]
198    pub struct UITraitDisplayScale;
199);
200
201extern_conformance!(
202    unsafe impl NSObjectProtocol for UITraitDisplayScale {}
203);
204
205extern_conformance!(
206    unsafe impl UICGFloatTraitDefinition for UITraitDisplayScale {}
207);
208
209extern_conformance!(
210    unsafe impl UITraitDefinition for UITraitDisplayScale {}
211);
212
213impl UITraitDisplayScale {
214    extern_methods!();
215}
216
217/// Methods declared on superclass `NSObject`.
218impl UITraitDisplayScale {
219    extern_methods!(
220        #[unsafe(method(init))]
221        #[unsafe(method_family = init)]
222        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
223
224        #[unsafe(method(new))]
225        #[unsafe(method_family = new)]
226        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
227    );
228}
229
230extern_class!(
231    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitraithorizontalsizeclass?language=objc)
232    #[unsafe(super(NSObject))]
233    #[thread_kind = MainThreadOnly]
234    #[derive(Debug, PartialEq, Eq, Hash)]
235    pub struct UITraitHorizontalSizeClass;
236);
237
238extern_conformance!(
239    unsafe impl NSObjectProtocol for UITraitHorizontalSizeClass {}
240);
241
242extern_conformance!(
243    unsafe impl UINSIntegerTraitDefinition for UITraitHorizontalSizeClass {}
244);
245
246extern_conformance!(
247    unsafe impl UITraitDefinition for UITraitHorizontalSizeClass {}
248);
249
250impl UITraitHorizontalSizeClass {
251    extern_methods!();
252}
253
254/// Methods declared on superclass `NSObject`.
255impl UITraitHorizontalSizeClass {
256    extern_methods!(
257        #[unsafe(method(init))]
258        #[unsafe(method_family = init)]
259        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
260
261        #[unsafe(method(new))]
262        #[unsafe(method_family = new)]
263        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
264    );
265}
266
267extern_class!(
268    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitraitverticalsizeclass?language=objc)
269    #[unsafe(super(NSObject))]
270    #[thread_kind = MainThreadOnly]
271    #[derive(Debug, PartialEq, Eq, Hash)]
272    pub struct UITraitVerticalSizeClass;
273);
274
275extern_conformance!(
276    unsafe impl NSObjectProtocol for UITraitVerticalSizeClass {}
277);
278
279extern_conformance!(
280    unsafe impl UINSIntegerTraitDefinition for UITraitVerticalSizeClass {}
281);
282
283extern_conformance!(
284    unsafe impl UITraitDefinition for UITraitVerticalSizeClass {}
285);
286
287impl UITraitVerticalSizeClass {
288    extern_methods!();
289}
290
291/// Methods declared on superclass `NSObject`.
292impl UITraitVerticalSizeClass {
293    extern_methods!(
294        #[unsafe(method(init))]
295        #[unsafe(method_family = init)]
296        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
297
298        #[unsafe(method(new))]
299        #[unsafe(method_family = new)]
300        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
301    );
302}
303
304extern_class!(
305    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitraitforcetouchcapability?language=objc)
306    #[unsafe(super(NSObject))]
307    #[thread_kind = MainThreadOnly]
308    #[derive(Debug, PartialEq, Eq, Hash)]
309    pub struct UITraitForceTouchCapability;
310);
311
312extern_conformance!(
313    unsafe impl NSObjectProtocol for UITraitForceTouchCapability {}
314);
315
316extern_conformance!(
317    unsafe impl UINSIntegerTraitDefinition for UITraitForceTouchCapability {}
318);
319
320extern_conformance!(
321    unsafe impl UITraitDefinition for UITraitForceTouchCapability {}
322);
323
324impl UITraitForceTouchCapability {
325    extern_methods!();
326}
327
328/// Methods declared on superclass `NSObject`.
329impl UITraitForceTouchCapability {
330    extern_methods!(
331        #[unsafe(method(init))]
332        #[unsafe(method_family = init)]
333        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
334
335        #[unsafe(method(new))]
336        #[unsafe(method_family = new)]
337        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
338    );
339}
340
341extern_class!(
342    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitraitpreferredcontentsizecategory?language=objc)
343    #[unsafe(super(NSObject))]
344    #[thread_kind = MainThreadOnly]
345    #[derive(Debug, PartialEq, Eq, Hash)]
346    pub struct UITraitPreferredContentSizeCategory;
347);
348
349extern_conformance!(
350    unsafe impl NSObjectProtocol for UITraitPreferredContentSizeCategory {}
351);
352
353extern_conformance!(
354    unsafe impl UIObjectTraitDefinition for UITraitPreferredContentSizeCategory {}
355);
356
357extern_conformance!(
358    unsafe impl UITraitDefinition for UITraitPreferredContentSizeCategory {}
359);
360
361impl UITraitPreferredContentSizeCategory {
362    extern_methods!();
363}
364
365/// Methods declared on superclass `NSObject`.
366impl UITraitPreferredContentSizeCategory {
367    extern_methods!(
368        #[unsafe(method(init))]
369        #[unsafe(method_family = init)]
370        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
371
372        #[unsafe(method(new))]
373        #[unsafe(method_family = new)]
374        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
375    );
376}
377
378extern_class!(
379    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitraitdisplaygamut?language=objc)
380    #[unsafe(super(NSObject))]
381    #[thread_kind = MainThreadOnly]
382    #[derive(Debug, PartialEq, Eq, Hash)]
383    pub struct UITraitDisplayGamut;
384);
385
386extern_conformance!(
387    unsafe impl NSObjectProtocol for UITraitDisplayGamut {}
388);
389
390extern_conformance!(
391    unsafe impl UINSIntegerTraitDefinition for UITraitDisplayGamut {}
392);
393
394extern_conformance!(
395    unsafe impl UITraitDefinition for UITraitDisplayGamut {}
396);
397
398impl UITraitDisplayGamut {
399    extern_methods!();
400}
401
402/// Methods declared on superclass `NSObject`.
403impl UITraitDisplayGamut {
404    extern_methods!(
405        #[unsafe(method(init))]
406        #[unsafe(method_family = init)]
407        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
408
409        #[unsafe(method(new))]
410        #[unsafe(method_family = new)]
411        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
412    );
413}
414
415extern_class!(
416    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitraitaccessibilitycontrast?language=objc)
417    #[unsafe(super(NSObject))]
418    #[thread_kind = MainThreadOnly]
419    #[derive(Debug, PartialEq, Eq, Hash)]
420    pub struct UITraitAccessibilityContrast;
421);
422
423extern_conformance!(
424    unsafe impl NSObjectProtocol for UITraitAccessibilityContrast {}
425);
426
427extern_conformance!(
428    unsafe impl UINSIntegerTraitDefinition for UITraitAccessibilityContrast {}
429);
430
431extern_conformance!(
432    unsafe impl UITraitDefinition for UITraitAccessibilityContrast {}
433);
434
435impl UITraitAccessibilityContrast {
436    extern_methods!();
437}
438
439/// Methods declared on superclass `NSObject`.
440impl UITraitAccessibilityContrast {
441    extern_methods!(
442        #[unsafe(method(init))]
443        #[unsafe(method_family = init)]
444        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
445
446        #[unsafe(method(new))]
447        #[unsafe(method_family = new)]
448        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
449    );
450}
451
452extern_class!(
453    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitraituserinterfacelevel?language=objc)
454    #[unsafe(super(NSObject))]
455    #[thread_kind = MainThreadOnly]
456    #[derive(Debug, PartialEq, Eq, Hash)]
457    pub struct UITraitUserInterfaceLevel;
458);
459
460extern_conformance!(
461    unsafe impl NSObjectProtocol for UITraitUserInterfaceLevel {}
462);
463
464extern_conformance!(
465    unsafe impl UINSIntegerTraitDefinition for UITraitUserInterfaceLevel {}
466);
467
468extern_conformance!(
469    unsafe impl UITraitDefinition for UITraitUserInterfaceLevel {}
470);
471
472impl UITraitUserInterfaceLevel {
473    extern_methods!();
474}
475
476/// Methods declared on superclass `NSObject`.
477impl UITraitUserInterfaceLevel {
478    extern_methods!(
479        #[unsafe(method(init))]
480        #[unsafe(method_family = init)]
481        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
482
483        #[unsafe(method(new))]
484        #[unsafe(method_family = new)]
485        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
486    );
487}
488
489extern_class!(
490    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitraitlegibilityweight?language=objc)
491    #[unsafe(super(NSObject))]
492    #[thread_kind = MainThreadOnly]
493    #[derive(Debug, PartialEq, Eq, Hash)]
494    pub struct UITraitLegibilityWeight;
495);
496
497extern_conformance!(
498    unsafe impl NSObjectProtocol for UITraitLegibilityWeight {}
499);
500
501extern_conformance!(
502    unsafe impl UINSIntegerTraitDefinition for UITraitLegibilityWeight {}
503);
504
505extern_conformance!(
506    unsafe impl UITraitDefinition for UITraitLegibilityWeight {}
507);
508
509impl UITraitLegibilityWeight {
510    extern_methods!();
511}
512
513/// Methods declared on superclass `NSObject`.
514impl UITraitLegibilityWeight {
515    extern_methods!(
516        #[unsafe(method(init))]
517        #[unsafe(method_family = init)]
518        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
519
520        #[unsafe(method(new))]
521        #[unsafe(method_family = new)]
522        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
523    );
524}
525
526extern_class!(
527    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitraitactiveappearance?language=objc)
528    #[unsafe(super(NSObject))]
529    #[thread_kind = MainThreadOnly]
530    #[derive(Debug, PartialEq, Eq, Hash)]
531    pub struct UITraitActiveAppearance;
532);
533
534extern_conformance!(
535    unsafe impl NSObjectProtocol for UITraitActiveAppearance {}
536);
537
538extern_conformance!(
539    unsafe impl UINSIntegerTraitDefinition for UITraitActiveAppearance {}
540);
541
542extern_conformance!(
543    unsafe impl UITraitDefinition for UITraitActiveAppearance {}
544);
545
546impl UITraitActiveAppearance {
547    extern_methods!();
548}
549
550/// Methods declared on superclass `NSObject`.
551impl UITraitActiveAppearance {
552    extern_methods!(
553        #[unsafe(method(init))]
554        #[unsafe(method_family = init)]
555        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
556
557        #[unsafe(method(new))]
558        #[unsafe(method_family = new)]
559        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
560    );
561}
562
563extern_class!(
564    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitraittoolbaritempresentationsize?language=objc)
565    #[unsafe(super(NSObject))]
566    #[thread_kind = MainThreadOnly]
567    #[derive(Debug, PartialEq, Eq, Hash)]
568    pub struct UITraitToolbarItemPresentationSize;
569);
570
571extern_conformance!(
572    unsafe impl NSObjectProtocol for UITraitToolbarItemPresentationSize {}
573);
574
575extern_conformance!(
576    unsafe impl UINSIntegerTraitDefinition for UITraitToolbarItemPresentationSize {}
577);
578
579extern_conformance!(
580    unsafe impl UITraitDefinition for UITraitToolbarItemPresentationSize {}
581);
582
583impl UITraitToolbarItemPresentationSize {
584    extern_methods!();
585}
586
587/// Methods declared on superclass `NSObject`.
588impl UITraitToolbarItemPresentationSize {
589    extern_methods!(
590        #[unsafe(method(init))]
591        #[unsafe(method_family = init)]
592        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
593
594        #[unsafe(method(new))]
595        #[unsafe(method_family = new)]
596        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
597    );
598}
599
600extern_class!(
601    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitraitimagedynamicrange?language=objc)
602    #[unsafe(super(NSObject))]
603    #[thread_kind = MainThreadOnly]
604    #[derive(Debug, PartialEq, Eq, Hash)]
605    pub struct UITraitImageDynamicRange;
606);
607
608extern_conformance!(
609    unsafe impl NSObjectProtocol for UITraitImageDynamicRange {}
610);
611
612extern_conformance!(
613    unsafe impl UINSIntegerTraitDefinition for UITraitImageDynamicRange {}
614);
615
616extern_conformance!(
617    unsafe impl UITraitDefinition for UITraitImageDynamicRange {}
618);
619
620impl UITraitImageDynamicRange {
621    extern_methods!();
622}
623
624/// Methods declared on superclass `NSObject`.
625impl UITraitImageDynamicRange {
626    extern_methods!(
627        #[unsafe(method(init))]
628        #[unsafe(method_family = init)]
629        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
630
631        #[unsafe(method(new))]
632        #[unsafe(method_family = new)]
633        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
634    );
635}
636
637extern_class!(
638    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitraittypesettinglanguage?language=objc)
639    #[unsafe(super(NSObject))]
640    #[thread_kind = MainThreadOnly]
641    #[derive(Debug, PartialEq, Eq, Hash)]
642    pub struct UITraitTypesettingLanguage;
643);
644
645extern_conformance!(
646    unsafe impl NSObjectProtocol for UITraitTypesettingLanguage {}
647);
648
649extern_conformance!(
650    unsafe impl UIObjectTraitDefinition for UITraitTypesettingLanguage {}
651);
652
653extern_conformance!(
654    unsafe impl UITraitDefinition for UITraitTypesettingLanguage {}
655);
656
657impl UITraitTypesettingLanguage {
658    extern_methods!();
659}
660
661/// Methods declared on superclass `NSObject`.
662impl UITraitTypesettingLanguage {
663    extern_methods!(
664        #[unsafe(method(init))]
665        #[unsafe(method_family = init)]
666        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
667
668        #[unsafe(method(new))]
669        #[unsafe(method_family = new)]
670        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
671    );
672}
673
674extern_class!(
675    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitraitscenecapturestate?language=objc)
676    #[unsafe(super(NSObject))]
677    #[thread_kind = MainThreadOnly]
678    #[derive(Debug, PartialEq, Eq, Hash)]
679    pub struct UITraitSceneCaptureState;
680);
681
682extern_conformance!(
683    unsafe impl NSObjectProtocol for UITraitSceneCaptureState {}
684);
685
686extern_conformance!(
687    unsafe impl UINSIntegerTraitDefinition for UITraitSceneCaptureState {}
688);
689
690extern_conformance!(
691    unsafe impl UITraitDefinition for UITraitSceneCaptureState {}
692);
693
694impl UITraitSceneCaptureState {
695    extern_methods!();
696}
697
698/// Methods declared on superclass `NSObject`.
699impl UITraitSceneCaptureState {
700    extern_methods!(
701        #[unsafe(method(init))]
702        #[unsafe(method_family = init)]
703        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
704
705        #[unsafe(method(new))]
706        #[unsafe(method_family = new)]
707        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
708    );
709}