Trait objc2_ui_kit::UIFocusEnvironment
source · pub unsafe trait UIFocusEnvironment: NSObjectProtocol + IsMainThreadOnly {
// Provided methods
unsafe fn preferredFocusEnvironments(
&self
) -> Retained<NSArray<ProtocolObject<dyn UIFocusEnvironment>>>
where Self: Sized + Message { ... }
unsafe fn parentFocusEnvironment(
&self
) -> Option<Retained<ProtocolObject<dyn UIFocusEnvironment>>>
where Self: Sized + Message { ... }
unsafe fn focusItemContainer(
&self
) -> Option<Retained<ProtocolObject<dyn UIFocusItemContainer>>>
where Self: Sized + Message { ... }
unsafe fn setNeedsFocusUpdate(&self)
where Self: Sized + Message { ... }
unsafe fn updateFocusIfNeeded(&self)
where Self: Sized + Message { ... }
unsafe fn shouldUpdateFocusInContext(
&self,
context: &UIFocusUpdateContext
) -> bool
where Self: Sized + Message { ... }
unsafe fn didUpdateFocusInContext_withAnimationCoordinator(
&self,
context: &UIFocusUpdateContext,
coordinator: &UIFocusAnimationCoordinator
)
where Self: Sized + Message { ... }
unsafe fn soundIdentifierForFocusUpdateInContext(
&self,
context: &UIFocusUpdateContext
) -> Option<Retained<UIFocusSoundIdentifier>>
where Self: Sized + Message { ... }
unsafe fn preferredFocusedView(&self) -> Option<Retained<UIView>>
where Self: Sized + Message { ... }
unsafe fn focusGroupIdentifier(&self) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
}Available on crate feature
UIFocus only.Provided Methods§
unsafe fn preferredFocusEnvironments( &self ) -> Retained<NSArray<ProtocolObject<dyn UIFocusEnvironment>>>
unsafe fn parentFocusEnvironment( &self ) -> Option<Retained<ProtocolObject<dyn UIFocusEnvironment>>>
unsafe fn focusItemContainer( &self ) -> Option<Retained<ProtocolObject<dyn UIFocusItemContainer>>>
unsafe fn setNeedsFocusUpdate(&self)
unsafe fn updateFocusIfNeeded(&self)
unsafe fn shouldUpdateFocusInContext( &self, context: &UIFocusUpdateContext ) -> bool
unsafe fn didUpdateFocusInContext_withAnimationCoordinator( &self, context: &UIFocusUpdateContext, coordinator: &UIFocusAnimationCoordinator )
Available on crate feature
UIFocusAnimationCoordinator only.unsafe fn soundIdentifierForFocusUpdateInContext( &self, context: &UIFocusUpdateContext ) -> Option<Retained<UIFocusSoundIdentifier>>
unsafe fn preferredFocusedView(&self) -> Option<Retained<UIView>>
👎Deprecated
Available on crate features
UIResponder and UIView only.unsafe fn focusGroupIdentifier(&self) -> Option<Retained<NSString>>
Trait Implementations§
source§impl ProtocolType for dyn UIFocusEnvironment
impl ProtocolType for dyn UIFocusEnvironment
impl<T> ImplementedBy<T> for dyn UIFocusEnvironment
Implementations on Foreign Types§
impl<T> UIFocusEnvironment for ProtocolObject<T>where
T: ?Sized + UIFocusEnvironment,
Implementors§
impl UIFocusEnvironment for UIActionSheet
Available on crate features
UIResponder and UIView and UIActionSheet only.impl UIFocusEnvironment for UIActivityIndicatorView
Available on crate features
UIResponder and UIView and UIActivityIndicatorView only.impl UIFocusEnvironment for UIActivityViewController
Available on crate features
UIResponder and UIViewController and UIActivityViewController only.impl UIFocusEnvironment for UIAlertController
Available on crate features
UIResponder and UIViewController and UIAlertController only.impl UIFocusEnvironment for UIAlertView
Available on crate features
UIResponder and UIView and UIAlertView only.impl UIFocusEnvironment for UIButton
Available on crate features
UIControl and UIResponder and UIView and UIButton only.impl UIFocusEnvironment for UICalendarView
Available on crate features
UIResponder and UIView and UICalendarView only.impl UIFocusEnvironment for UICloudSharingController
Available on crate features
UIResponder and UIViewController and UICloudSharingController only.impl UIFocusEnvironment for UICollectionReusableView
Available on crate features
UIResponder and UIView and UICollectionViewCell only.impl UIFocusEnvironment for UICollectionView
Available on crate features
UIResponder and UIScrollView and UIView and UICollectionView only.impl UIFocusEnvironment for UICollectionViewCell
Available on crate features
UIResponder and UIView and UICollectionViewCell only.impl UIFocusEnvironment for UICollectionViewController
Available on crate features
UIResponder and UIViewController and UICollectionViewController only.impl UIFocusEnvironment for UICollectionViewListCell
Available on crate features
UICollectionViewCell and UIResponder and UIView and UICollectionViewListCell only.impl UIFocusEnvironment for UIColorPickerViewController
Available on crate features
UIResponder and UIViewController and UIColorPickerViewController only.impl UIFocusEnvironment for UIColorWell
Available on crate features
UIControl and UIResponder and UIView and UIColorWell only.impl UIFocusEnvironment for UIControl
Available on crate features
UIResponder and UIView and UIControl only.impl UIFocusEnvironment for UIDatePicker
Available on crate features
UIControl and UIResponder and UIView and UIDatePicker only.impl UIFocusEnvironment for UIDocumentBrowserViewController
Available on crate features
UIResponder and UIViewController and UIDocumentBrowserViewController only.impl UIFocusEnvironment for UIDocumentMenuViewController
Available on crate features
UIResponder and UIViewController and UIDocumentMenuViewController only.impl UIFocusEnvironment for UIDocumentPickerExtensionViewController
Available on crate features
UIResponder and UIViewController and UIDocumentPickerExtensionViewController only.impl UIFocusEnvironment for UIDocumentPickerViewController
Available on crate features
UIResponder and UIViewController and UIDocumentPickerViewController only.impl UIFocusEnvironment for UIDocumentViewController
Available on crate features
UIResponder and UIViewController and UIDocumentViewController only.impl UIFocusEnvironment for UIEventAttributionView
Available on crate features
UIResponder and UIView and UIEventAttributionView only.impl UIFocusEnvironment for UIFontPickerViewController
Available on crate features
UIResponder and UIViewController and UIFontPickerViewController only.impl UIFocusEnvironment for UIImagePickerController
Available on crate features
UINavigationController and UIResponder and UIViewController and UIImagePickerController only.impl UIFocusEnvironment for UIImageView
Available on crate features
UIResponder and UIView and UIImageView only.impl UIFocusEnvironment for UIInputView
Available on crate features
UIResponder and UIView and UIInputView only.impl UIFocusEnvironment for UIInputViewController
Available on crate features
UIResponder and UIViewController and UIInputViewController only.impl UIFocusEnvironment for UILabel
Available on crate features
UIResponder and UIView and UILabel only.impl UIFocusEnvironment for UIListContentView
Available on crate features
UIResponder and UIView and UIListContentConfiguration only.impl UIFocusEnvironment for UIPageControl
Available on crate features
UIControl and UIResponder and UIView and UIPageControl only.impl UIFocusEnvironment for UIPageViewController
Available on crate features
UIResponder and UIViewController and UIPageViewController only.impl UIFocusEnvironment for UIPasteControl
Available on crate features
UIControl and UIResponder and UIView and UIPasteControl only.impl UIFocusEnvironment for UIPickerView
Available on crate features
UIResponder and UIView and UIPickerView only.impl UIFocusEnvironment for UIPopoverBackgroundView
Available on crate features
UIResponder and UIView and UIPopoverBackgroundView only.impl UIFocusEnvironment for UIPopoverPresentationController
Available on crate features
UIPresentationController and UIPopoverPresentationController only.impl UIFocusEnvironment for UIPresentationController
Available on crate feature
UIPresentationController only.impl UIFocusEnvironment for UIProgressView
Available on crate features
UIResponder and UIView and UIProgressView only.impl UIFocusEnvironment for UIReferenceLibraryViewController
Available on crate features
UIResponder and UIViewController and UIReferenceLibraryViewController only.impl UIFocusEnvironment for UIRefreshControl
Available on crate features
UIControl and UIResponder and UIView and UIRefreshControl only.impl UIFocusEnvironment for UIScrollView
Available on crate features
UIResponder and UIView and UIScrollView only.impl UIFocusEnvironment for UISearchBar
Available on crate features
UIResponder and UIView and UISearchBar only.impl UIFocusEnvironment for UISearchContainerViewController
Available on crate features
UIResponder and UIViewController and UISearchContainerViewController only.impl UIFocusEnvironment for UISearchController
Available on crate features
UIResponder and UIViewController and UISearchController only.impl UIFocusEnvironment for UISearchTextField
Available on crate features
UIControl and UIResponder and UITextField and UIView and UISearchTextField only.impl UIFocusEnvironment for UISegmentedControl
Available on crate features
UIControl and UIResponder and UIView and UISegmentedControl only.impl UIFocusEnvironment for UISheetPresentationController
Available on crate features
UIPresentationController and UISheetPresentationController only.impl UIFocusEnvironment for UISlider
Available on crate features
UIControl and UIResponder and UIView and UISlider only.impl UIFocusEnvironment for UISplitViewController
Available on crate features
UIResponder and UIViewController and UISplitViewController only.impl UIFocusEnvironment for UIStackView
Available on crate features
UIResponder and UIView and UIStackView only.impl UIFocusEnvironment for UIStandardTextCursorView
Available on crate features
UIResponder and UIView and UIStandardTextCursorView only.impl UIFocusEnvironment for UIStepper
Available on crate features
UIControl and UIResponder and UIView and UIStepper only.impl UIFocusEnvironment for UISwitch
Available on crate features
UIControl and UIResponder and UIView and UISwitch only.impl UIFocusEnvironment for UITabBar
Available on crate features
UIResponder and UIView and UITabBar only.impl UIFocusEnvironment for UITabBarController
Available on crate features
UIResponder and UIViewController and UITabBarController only.impl UIFocusEnvironment for UITableView
Available on crate features
UIResponder and UIScrollView and UIView and UITableView only.impl UIFocusEnvironment for UITableViewCell
Available on crate features
UIResponder and UIView and UITableViewCell only.impl UIFocusEnvironment for UITableViewController
Available on crate features
UIResponder and UIViewController and UITableViewController only.impl UIFocusEnvironment for UITextField
Available on crate features
UIControl and UIResponder and UIView and UITextField only.impl UIFocusEnvironment for UITextView
Available on crate features
UIResponder and UIScrollView and UIView and UITextView only.impl UIFocusEnvironment for UIToolbar
Available on crate features
UIResponder and UIView and UIToolbar only.impl UIFocusEnvironment for UIVideoEditorController
Available on crate features
UINavigationController and UIResponder and UIViewController and UIVideoEditorController only.impl UIFocusEnvironment for UIView
Available on crate features
UIResponder and UIView only.impl UIFocusEnvironment for UIViewController
Available on crate features
UIResponder and UIViewController only.impl UIFocusEnvironment for UIVisualEffectView
Available on crate features
UIResponder and UIView and UIVisualEffectView only.impl UIFocusEnvironment for UIWebView
Available on crate features
UIResponder and UIView and UIWebView only.impl UIFocusEnvironment for UIWindow
Available on crate features
UIResponder and UIView and UIWindow only.