objc2_ui_kit/generated/UIFocusUpdateContext_UIKitAdditions.rs
1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use objc2::__framework_prelude::*;
4
5use crate::*;
6
7/// UIKitAdditions.
8#[cfg(feature = "UIFocus")]
9impl UIFocusUpdateContext {
10 extern_methods!(
11 #[cfg(all(feature = "UIResponder", feature = "UIView"))]
12 /// The view that was focused before the update. May be nil if no view was focused, such as when setting initial focus.
13 /// If previouslyFocusedItem is not a view, this returns that item's containing view, otherwise they are equal.
14 /// NOTE: This property will be deprecated in a future release. Use previouslyFocusedItem instead.
15 #[unsafe(method(previouslyFocusedView))]
16 #[unsafe(method_family = none)]
17 pub fn previouslyFocusedView(&self) -> Option<Retained<UIView>>;
18
19 #[cfg(all(feature = "UIResponder", feature = "UIView"))]
20 /// The view that will be focused after the update. May be nil if no view will be focused.
21 /// If nextFocusedItem is not a view, this returns that item's containing view, otherwise they are equal.
22 /// NOTE: This property will be deprecated in a future release. Use nextFocusedItem instead.
23 #[unsafe(method(nextFocusedView))]
24 #[unsafe(method_family = none)]
25 pub fn nextFocusedView(&self) -> Option<Retained<UIView>>;
26 );
27}