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§

source

unsafe fn preferredFocusEnvironments( &self ) -> Retained<NSArray<ProtocolObject<dyn UIFocusEnvironment>>>
where Self: Sized + Message,

source

unsafe fn parentFocusEnvironment( &self ) -> Option<Retained<ProtocolObject<dyn UIFocusEnvironment>>>
where Self: Sized + Message,

source

unsafe fn focusItemContainer( &self ) -> Option<Retained<ProtocolObject<dyn UIFocusItemContainer>>>
where Self: Sized + Message,

source

unsafe fn setNeedsFocusUpdate(&self)
where Self: Sized + Message,

source

unsafe fn updateFocusIfNeeded(&self)
where Self: Sized + Message,

source

unsafe fn shouldUpdateFocusInContext( &self, context: &UIFocusUpdateContext ) -> bool
where Self: Sized + Message,

source

unsafe fn didUpdateFocusInContext_withAnimationCoordinator( &self, context: &UIFocusUpdateContext, coordinator: &UIFocusAnimationCoordinator )
where Self: Sized + Message,

Available on crate feature UIFocusAnimationCoordinator only.
source

unsafe fn soundIdentifierForFocusUpdateInContext( &self, context: &UIFocusUpdateContext ) -> Option<Retained<UIFocusSoundIdentifier>>
where Self: Sized + Message,

source

unsafe fn preferredFocusedView(&self) -> Option<Retained<UIView>>
where Self: Sized + Message,

👎Deprecated
Available on crate features UIResponder and UIView only.
source

unsafe fn focusGroupIdentifier(&self) -> Option<Retained<NSString>>
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn UIFocusEnvironment

source§

const NAME: &'static str = "UIFocusEnvironment"

The name of the Objective-C protocol that this type represents.
source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
source§

impl<T> ImplementedBy<T> for dyn UIFocusEnvironment

Implementations on Foreign Types§

source§

impl<T> UIFocusEnvironment for ProtocolObject<T>

Implementors§

source§

impl UIFocusEnvironment for UIActionSheet

Available on crate features UIResponder and UIView and UIActionSheet only.
source§

impl UIFocusEnvironment for UIActivityIndicatorView

Available on crate features UIResponder and UIView and UIActivityIndicatorView only.
source§

impl UIFocusEnvironment for UIActivityViewController

Available on crate features UIResponder and UIViewController and UIActivityViewController only.
source§

impl UIFocusEnvironment for UIAlertController

Available on crate features UIResponder and UIViewController and UIAlertController only.
source§

impl UIFocusEnvironment for UIAlertView

Available on crate features UIResponder and UIView and UIAlertView only.
source§

impl UIFocusEnvironment for UIButton

Available on crate features UIControl and UIResponder and UIView and UIButton only.
source§

impl UIFocusEnvironment for UICalendarView

Available on crate features UIResponder and UIView and UICalendarView only.
source§

impl UIFocusEnvironment for UICloudSharingController

Available on crate features UIResponder and UIViewController and UICloudSharingController only.
source§

impl UIFocusEnvironment for UICollectionReusableView

Available on crate features UIResponder and UIView and UICollectionViewCell only.
source§

impl UIFocusEnvironment for UICollectionView

Available on crate features UIResponder and UIScrollView and UIView and UICollectionView only.
source§

impl UIFocusEnvironment for UICollectionViewCell

Available on crate features UIResponder and UIView and UICollectionViewCell only.
source§

impl UIFocusEnvironment for UICollectionViewController

Available on crate features UIResponder and UIViewController and UICollectionViewController only.
source§

impl UIFocusEnvironment for UICollectionViewListCell

Available on crate features UICollectionViewCell and UIResponder and UIView and UICollectionViewListCell only.
source§

impl UIFocusEnvironment for UIColorPickerViewController

Available on crate features UIResponder and UIViewController and UIColorPickerViewController only.
source§

impl UIFocusEnvironment for UIColorWell

Available on crate features UIControl and UIResponder and UIView and UIColorWell only.
source§

impl UIFocusEnvironment for UIContentUnavailableView

Available on crate features UIResponder and UIView and UIContentUnavailableView only.
source§

impl UIFocusEnvironment for UIControl

Available on crate features UIResponder and UIView and UIControl only.
source§

impl UIFocusEnvironment for UIDatePicker

Available on crate features UIControl and UIResponder and UIView and UIDatePicker only.
source§

impl UIFocusEnvironment for UIDocumentBrowserViewController

Available on crate features UIResponder and UIViewController and UIDocumentBrowserViewController only.
source§

impl UIFocusEnvironment for UIDocumentMenuViewController

Available on crate features UIResponder and UIViewController and UIDocumentMenuViewController only.
source§

impl UIFocusEnvironment for UIDocumentPickerExtensionViewController

Available on crate features UIResponder and UIViewController and UIDocumentPickerExtensionViewController only.
source§

impl UIFocusEnvironment for UIDocumentPickerViewController

Available on crate features UIResponder and UIViewController and UIDocumentPickerViewController only.
source§

impl UIFocusEnvironment for UIDocumentViewController

Available on crate features UIResponder and UIViewController and UIDocumentViewController only.
source§

impl UIFocusEnvironment for UIEventAttributionView

Available on crate features UIResponder and UIView and UIEventAttributionView only.
source§

impl UIFocusEnvironment for UIFontPickerViewController

Available on crate features UIResponder and UIViewController and UIFontPickerViewController only.
source§

impl UIFocusEnvironment for UIImagePickerController

Available on crate features UINavigationController and UIResponder and UIViewController and UIImagePickerController only.
source§

impl UIFocusEnvironment for UIImageView

Available on crate features UIResponder and UIView and UIImageView only.
source§

impl UIFocusEnvironment for UIInputView

Available on crate features UIResponder and UIView and UIInputView only.
source§

impl UIFocusEnvironment for UIInputViewController

Available on crate features UIResponder and UIViewController and UIInputViewController only.
source§

impl UIFocusEnvironment for UILabel

Available on crate features UIResponder and UIView and UILabel only.
source§

impl UIFocusEnvironment for UIListContentView

Available on crate features UIResponder and UIView and UIListContentConfiguration only.
source§

impl UIFocusEnvironment for UINavigationBar

Available on crate features UIResponder and UIView and UINavigationBar only.
source§

impl UIFocusEnvironment for UINavigationController

Available on crate features UIResponder and UIViewController and UINavigationController only.
source§

impl UIFocusEnvironment for UIPageControl

Available on crate features UIControl and UIResponder and UIView and UIPageControl only.
source§

impl UIFocusEnvironment for UIPageViewController

Available on crate features UIResponder and UIViewController and UIPageViewController only.
source§

impl UIFocusEnvironment for UIPasteControl

Available on crate features UIControl and UIResponder and UIView and UIPasteControl only.
source§

impl UIFocusEnvironment for UIPickerView

Available on crate features UIResponder and UIView and UIPickerView only.
source§

impl UIFocusEnvironment for UIPopoverBackgroundView

Available on crate features UIResponder and UIView and UIPopoverBackgroundView only.
source§

impl UIFocusEnvironment for UIPopoverPresentationController

Available on crate features UIPresentationController and UIPopoverPresentationController only.
source§

impl UIFocusEnvironment for UIPresentationController

Available on crate feature UIPresentationController only.
source§

impl UIFocusEnvironment for UIProgressView

Available on crate features UIResponder and UIView and UIProgressView only.
source§

impl UIFocusEnvironment for UIReferenceLibraryViewController

Available on crate features UIResponder and UIViewController and UIReferenceLibraryViewController only.
source§

impl UIFocusEnvironment for UIRefreshControl

Available on crate features UIControl and UIResponder and UIView and UIRefreshControl only.
source§

impl UIFocusEnvironment for UIScrollView

Available on crate features UIResponder and UIView and UIScrollView only.
source§

impl UIFocusEnvironment for UISearchBar

Available on crate features UIResponder and UIView and UISearchBar only.
source§

impl UIFocusEnvironment for UISearchContainerViewController

Available on crate features UIResponder and UIViewController and UISearchContainerViewController only.
source§

impl UIFocusEnvironment for UISearchController

Available on crate features UIResponder and UIViewController and UISearchController only.
source§

impl UIFocusEnvironment for UISearchTextField

Available on crate features UIControl and UIResponder and UITextField and UIView and UISearchTextField only.
source§

impl UIFocusEnvironment for UISegmentedControl

Available on crate features UIControl and UIResponder and UIView and UISegmentedControl only.
source§

impl UIFocusEnvironment for UISheetPresentationController

Available on crate features UIPresentationController and UISheetPresentationController only.
source§

impl UIFocusEnvironment for UISlider

Available on crate features UIControl and UIResponder and UIView and UISlider only.
source§

impl UIFocusEnvironment for UISplitViewController

Available on crate features UIResponder and UIViewController and UISplitViewController only.
source§

impl UIFocusEnvironment for UIStackView

Available on crate features UIResponder and UIView and UIStackView only.
source§

impl UIFocusEnvironment for UIStandardTextCursorView

Available on crate features UIResponder and UIView and UIStandardTextCursorView only.
source§

impl UIFocusEnvironment for UIStepper

Available on crate features UIControl and UIResponder and UIView and UIStepper only.
source§

impl UIFocusEnvironment for UISwitch

Available on crate features UIControl and UIResponder and UIView and UISwitch only.
source§

impl UIFocusEnvironment for UITabBar

Available on crate features UIResponder and UIView and UITabBar only.
source§

impl UIFocusEnvironment for UITabBarController

Available on crate features UIResponder and UIViewController and UITabBarController only.
source§

impl UIFocusEnvironment for UITableView

Available on crate features UIResponder and UIScrollView and UIView and UITableView only.
source§

impl UIFocusEnvironment for UITableViewCell

Available on crate features UIResponder and UIView and UITableViewCell only.
source§

impl UIFocusEnvironment for UITableViewController

Available on crate features UIResponder and UIViewController and UITableViewController only.
source§

impl UIFocusEnvironment for UITableViewHeaderFooterView

Available on crate features UIResponder and UIView and UITableViewHeaderFooterView only.
source§

impl UIFocusEnvironment for UITextField

Available on crate features UIControl and UIResponder and UIView and UITextField only.
source§

impl UIFocusEnvironment for UITextView

Available on crate features UIResponder and UIScrollView and UIView and UITextView only.
source§

impl UIFocusEnvironment for UIToolbar

Available on crate features UIResponder and UIView and UIToolbar only.
source§

impl UIFocusEnvironment for UIVideoEditorController

Available on crate features UINavigationController and UIResponder and UIViewController and UIVideoEditorController only.
source§

impl UIFocusEnvironment for UIView

Available on crate features UIResponder and UIView only.
source§

impl UIFocusEnvironment for UIViewController

Available on crate features UIResponder and UIViewController only.
source§

impl UIFocusEnvironment for UIVisualEffectView

Available on crate features UIResponder and UIView and UIVisualEffectView only.
source§

impl UIFocusEnvironment for UIWebView

Available on crate features UIResponder and UIView and UIWebView only.
source§

impl UIFocusEnvironment for UIWindow

Available on crate features UIResponder and UIView and UIWindow only.