objc2_ui_kit/generated/
UIAccessibilityIdentification.rs1use core::ffi::*;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_protocol!(
10 pub unsafe trait UIAccessibilityIdentification:
12 NSObjectProtocol + MainThreadOnly
13 {
14 #[unsafe(method(accessibilityIdentifier))]
15 #[unsafe(method_family = none)]
16 unsafe fn accessibilityIdentifier(&self) -> Option<Retained<NSString>>;
17
18 #[unsafe(method(setAccessibilityIdentifier:))]
20 #[unsafe(method_family = none)]
21 unsafe fn setAccessibilityIdentifier(&self, accessibility_identifier: Option<&NSString>);
22 }
23);
24
25#[cfg(all(feature = "UIResponder", feature = "UIView"))]
27impl UIView {
28 extern_methods!();
29}
30
31#[cfg(all(feature = "UIResponder", feature = "UIView"))]
32unsafe impl UIAccessibilityIdentification for UIView {}
33
34#[cfg(feature = "UIBarItem")]
36impl UIBarItem {
37 extern_methods!();
38}
39
40#[cfg(feature = "UIBarItem")]
41unsafe impl UIAccessibilityIdentification for UIBarItem {}
42
43#[cfg(feature = "UIAlertController")]
45impl UIAlertAction {
46 extern_methods!();
47}
48
49#[cfg(feature = "UIAlertController")]
50unsafe impl UIAccessibilityIdentification for UIAlertAction {}
51
52#[cfg(feature = "UIMenuElement")]
54impl UIMenuElement {
55 extern_methods!();
56}
57
58#[cfg(feature = "UIMenuElement")]
59unsafe impl UIAccessibilityIdentification for UIMenuElement {}
60
61#[cfg(feature = "UIImage")]
63impl UIImage {
64 extern_methods!();
65}