Trait objc2_ui_kit::UITraitEnvironment

source ·
pub unsafe trait UITraitEnvironment: NSObjectProtocol + IsMainThreadOnly {
    // Provided methods
    fn traitCollection(&self) -> Retained<UITraitCollection>
       where Self: Sized + Message { ... }
    unsafe fn traitCollectionDidChange(
        &self,
        previous_trait_collection: Option<&UITraitCollection>
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UITraitCollection only.

Provided Methods§

source

fn traitCollection(&self) -> Retained<UITraitCollection>
where Self: Sized + Message,

source

unsafe fn traitCollectionDidChange( &self, previous_trait_collection: Option<&UITraitCollection> )
where Self: Sized + Message,

👎Deprecated: Use the trait change registration APIs declared in the UITraitChangeObservable protocol

Trait Implementations§

source§

impl ProtocolType for dyn UITraitEnvironment

source§

const NAME: &'static str = "UITraitEnvironment"

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 UITraitEnvironment

Implementations on Foreign Types§

source§

impl<T> UITraitEnvironment for ProtocolObject<T>

Implementors§

source§

impl UITraitEnvironment for UIActionSheet

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

impl UITraitEnvironment for UIActivityIndicatorView

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

impl UITraitEnvironment for UIActivityViewController

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

impl UITraitEnvironment for UIAlertController

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

impl UITraitEnvironment for UIAlertView

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

impl UITraitEnvironment for UIButton

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

impl UITraitEnvironment for UICalendarView

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

impl UITraitEnvironment for UICloudSharingController

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

impl UITraitEnvironment for UICollectionReusableView

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

impl UITraitEnvironment for UICollectionView

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

impl UITraitEnvironment for UICollectionViewCell

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

impl UITraitEnvironment for UICollectionViewController

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

impl UITraitEnvironment for UICollectionViewListCell

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

impl UITraitEnvironment for UIColorPickerViewController

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

impl UITraitEnvironment for UIColorWell

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

impl UITraitEnvironment for UIContentUnavailableView

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

impl UITraitEnvironment for UIControl

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

impl UITraitEnvironment for UIDatePicker

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

impl UITraitEnvironment for UIDocumentBrowserViewController

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

impl UITraitEnvironment for UIDocumentMenuViewController

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

impl UITraitEnvironment for UIDocumentPickerExtensionViewController

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

impl UITraitEnvironment for UIDocumentPickerViewController

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

impl UITraitEnvironment for UIDocumentViewController

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

impl UITraitEnvironment for UIEventAttributionView

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

impl UITraitEnvironment for UIFontPickerViewController

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

impl UITraitEnvironment for UIImagePickerController

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

impl UITraitEnvironment for UIImageView

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

impl UITraitEnvironment for UIInputView

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

impl UITraitEnvironment for UIInputViewController

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

impl UITraitEnvironment for UILabel

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

impl UITraitEnvironment for UIListContentView

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

impl UITraitEnvironment for UINavigationBar

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

impl UITraitEnvironment for UINavigationController

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

impl UITraitEnvironment for UIPageControl

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

impl UITraitEnvironment for UIPageViewController

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

impl UITraitEnvironment for UIPasteControl

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

impl UITraitEnvironment for UIPickerView

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

impl UITraitEnvironment for UIPopoverBackgroundView

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

impl UITraitEnvironment for UIPopoverPresentationController

Available on crate features UIPresentationController and UIPopoverPresentationController only.
source§

impl UITraitEnvironment for UIPresentationController

Available on crate feature UIPresentationController only.
source§

impl UITraitEnvironment for UIProgressView

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

impl UITraitEnvironment for UIReferenceLibraryViewController

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

impl UITraitEnvironment for UIRefreshControl

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

impl UITraitEnvironment for UIScreen

Available on crate feature UIScreen only.
source§

impl UITraitEnvironment for UIScrollView

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

impl UITraitEnvironment for UISearchBar

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

impl UITraitEnvironment for UISearchContainerViewController

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

impl UITraitEnvironment for UISearchController

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

impl UITraitEnvironment for UISearchTextField

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

impl UITraitEnvironment for UISegmentedControl

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

impl UITraitEnvironment for UISheetPresentationController

Available on crate features UIPresentationController and UISheetPresentationController only.
source§

impl UITraitEnvironment for UISlider

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

impl UITraitEnvironment for UISplitViewController

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

impl UITraitEnvironment for UIStackView

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

impl UITraitEnvironment for UIStandardTextCursorView

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

impl UITraitEnvironment for UIStepper

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

impl UITraitEnvironment for UISwitch

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

impl UITraitEnvironment for UITabBar

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

impl UITraitEnvironment for UITabBarController

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

impl UITraitEnvironment for UITableView

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

impl UITraitEnvironment for UITableViewCell

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

impl UITraitEnvironment for UITableViewController

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

impl UITraitEnvironment for UITableViewHeaderFooterView

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

impl UITraitEnvironment for UITextField

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

impl UITraitEnvironment for UITextView

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

impl UITraitEnvironment for UIToolbar

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

impl UITraitEnvironment for UIVideoEditorController

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

impl UITraitEnvironment for UIView

Available on crate features UIResponder and UIView only.
source§

impl UITraitEnvironment for UIViewController

Available on crate features UIResponder and UIViewController only.
source§

impl UITraitEnvironment for UIVisualEffectView

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

impl UITraitEnvironment for UIWebView

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

impl UITraitEnvironment for UIWindow

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

impl UITraitEnvironment for UIWindowScene

Available on crate features UIResponder and UIScene and UIWindowScene only.