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§
fn traitCollection(&self) -> Retained<UITraitCollection>
unsafe fn traitCollectionDidChange( &self, previous_trait_collection: Option<&UITraitCollection> )
👎Deprecated: Use the trait change registration APIs declared in the UITraitChangeObservable protocol
Trait Implementations§
source§impl ProtocolType for dyn UITraitEnvironment
impl ProtocolType for dyn UITraitEnvironment
impl<T> ImplementedBy<T> for dyn UITraitEnvironment
Implementations on Foreign Types§
impl<T> UITraitEnvironment for ProtocolObject<T>where
T: ?Sized + UITraitEnvironment,
Implementors§
impl UITraitEnvironment for UIActionSheet
Available on crate features
UIResponder
and UIView
and UIActionSheet
only.impl UITraitEnvironment for UIActivityIndicatorView
Available on crate features
UIResponder
and UIView
and UIActivityIndicatorView
only.impl UITraitEnvironment for UIActivityViewController
Available on crate features
UIResponder
and UIViewController
and UIActivityViewController
only.impl UITraitEnvironment for UIAlertController
Available on crate features
UIResponder
and UIViewController
and UIAlertController
only.impl UITraitEnvironment for UIAlertView
Available on crate features
UIResponder
and UIView
and UIAlertView
only.impl UITraitEnvironment for UIButton
Available on crate features
UIControl
and UIResponder
and UIView
and UIButton
only.impl UITraitEnvironment for UICalendarView
Available on crate features
UIResponder
and UIView
and UICalendarView
only.impl UITraitEnvironment for UICloudSharingController
Available on crate features
UIResponder
and UIViewController
and UICloudSharingController
only.impl UITraitEnvironment for UICollectionReusableView
Available on crate features
UIResponder
and UIView
and UICollectionViewCell
only.impl UITraitEnvironment for UICollectionView
Available on crate features
UIResponder
and UIScrollView
and UIView
and UICollectionView
only.impl UITraitEnvironment for UICollectionViewCell
Available on crate features
UIResponder
and UIView
and UICollectionViewCell
only.impl UITraitEnvironment for UICollectionViewController
Available on crate features
UIResponder
and UIViewController
and UICollectionViewController
only.impl UITraitEnvironment for UICollectionViewListCell
Available on crate features
UICollectionViewCell
and UIResponder
and UIView
and UICollectionViewListCell
only.impl UITraitEnvironment for UIColorPickerViewController
Available on crate features
UIResponder
and UIViewController
and UIColorPickerViewController
only.impl UITraitEnvironment for UIColorWell
Available on crate features
UIControl
and UIResponder
and UIView
and UIColorWell
only.impl UITraitEnvironment for UIControl
Available on crate features
UIResponder
and UIView
and UIControl
only.impl UITraitEnvironment for UIDatePicker
Available on crate features
UIControl
and UIResponder
and UIView
and UIDatePicker
only.impl UITraitEnvironment for UIDocumentBrowserViewController
Available on crate features
UIResponder
and UIViewController
and UIDocumentBrowserViewController
only.impl UITraitEnvironment for UIDocumentMenuViewController
Available on crate features
UIResponder
and UIViewController
and UIDocumentMenuViewController
only.impl UITraitEnvironment for UIDocumentPickerExtensionViewController
Available on crate features
UIResponder
and UIViewController
and UIDocumentPickerExtensionViewController
only.impl UITraitEnvironment for UIDocumentPickerViewController
Available on crate features
UIResponder
and UIViewController
and UIDocumentPickerViewController
only.impl UITraitEnvironment for UIDocumentViewController
Available on crate features
UIResponder
and UIViewController
and UIDocumentViewController
only.impl UITraitEnvironment for UIEventAttributionView
Available on crate features
UIResponder
and UIView
and UIEventAttributionView
only.impl UITraitEnvironment for UIFontPickerViewController
Available on crate features
UIResponder
and UIViewController
and UIFontPickerViewController
only.impl UITraitEnvironment for UIImagePickerController
Available on crate features
UINavigationController
and UIResponder
and UIViewController
and UIImagePickerController
only.impl UITraitEnvironment for UIImageView
Available on crate features
UIResponder
and UIView
and UIImageView
only.impl UITraitEnvironment for UIInputView
Available on crate features
UIResponder
and UIView
and UIInputView
only.impl UITraitEnvironment for UIInputViewController
Available on crate features
UIResponder
and UIViewController
and UIInputViewController
only.impl UITraitEnvironment for UILabel
Available on crate features
UIResponder
and UIView
and UILabel
only.impl UITraitEnvironment for UIListContentView
Available on crate features
UIResponder
and UIView
and UIListContentConfiguration
only.impl UITraitEnvironment for UIPageControl
Available on crate features
UIControl
and UIResponder
and UIView
and UIPageControl
only.impl UITraitEnvironment for UIPageViewController
Available on crate features
UIResponder
and UIViewController
and UIPageViewController
only.impl UITraitEnvironment for UIPasteControl
Available on crate features
UIControl
and UIResponder
and UIView
and UIPasteControl
only.impl UITraitEnvironment for UIPickerView
Available on crate features
UIResponder
and UIView
and UIPickerView
only.impl UITraitEnvironment for UIPopoverBackgroundView
Available on crate features
UIResponder
and UIView
and UIPopoverBackgroundView
only.impl UITraitEnvironment for UIPopoverPresentationController
Available on crate features
UIPresentationController
and UIPopoverPresentationController
only.impl UITraitEnvironment for UIPresentationController
Available on crate feature
UIPresentationController
only.impl UITraitEnvironment for UIProgressView
Available on crate features
UIResponder
and UIView
and UIProgressView
only.impl UITraitEnvironment for UIReferenceLibraryViewController
Available on crate features
UIResponder
and UIViewController
and UIReferenceLibraryViewController
only.impl UITraitEnvironment for UIRefreshControl
Available on crate features
UIControl
and UIResponder
and UIView
and UIRefreshControl
only.impl UITraitEnvironment for UIScreen
Available on crate feature
UIScreen
only.impl UITraitEnvironment for UIScrollView
Available on crate features
UIResponder
and UIView
and UIScrollView
only.impl UITraitEnvironment for UISearchBar
Available on crate features
UIResponder
and UIView
and UISearchBar
only.impl UITraitEnvironment for UISearchContainerViewController
Available on crate features
UIResponder
and UIViewController
and UISearchContainerViewController
only.impl UITraitEnvironment for UISearchController
Available on crate features
UIResponder
and UIViewController
and UISearchController
only.impl UITraitEnvironment for UISearchTextField
Available on crate features
UIControl
and UIResponder
and UITextField
and UIView
and UISearchTextField
only.impl UITraitEnvironment for UISegmentedControl
Available on crate features
UIControl
and UIResponder
and UIView
and UISegmentedControl
only.impl UITraitEnvironment for UISheetPresentationController
Available on crate features
UIPresentationController
and UISheetPresentationController
only.impl UITraitEnvironment for UISlider
Available on crate features
UIControl
and UIResponder
and UIView
and UISlider
only.impl UITraitEnvironment for UISplitViewController
Available on crate features
UIResponder
and UIViewController
and UISplitViewController
only.impl UITraitEnvironment for UIStackView
Available on crate features
UIResponder
and UIView
and UIStackView
only.impl UITraitEnvironment for UIStandardTextCursorView
Available on crate features
UIResponder
and UIView
and UIStandardTextCursorView
only.impl UITraitEnvironment for UIStepper
Available on crate features
UIControl
and UIResponder
and UIView
and UIStepper
only.impl UITraitEnvironment for UISwitch
Available on crate features
UIControl
and UIResponder
and UIView
and UISwitch
only.impl UITraitEnvironment for UITabBar
Available on crate features
UIResponder
and UIView
and UITabBar
only.impl UITraitEnvironment for UITabBarController
Available on crate features
UIResponder
and UIViewController
and UITabBarController
only.impl UITraitEnvironment for UITableView
Available on crate features
UIResponder
and UIScrollView
and UIView
and UITableView
only.impl UITraitEnvironment for UITableViewCell
Available on crate features
UIResponder
and UIView
and UITableViewCell
only.impl UITraitEnvironment for UITableViewController
Available on crate features
UIResponder
and UIViewController
and UITableViewController
only.impl UITraitEnvironment for UITextField
Available on crate features
UIControl
and UIResponder
and UIView
and UITextField
only.impl UITraitEnvironment for UITextView
Available on crate features
UIResponder
and UIScrollView
and UIView
and UITextView
only.impl UITraitEnvironment for UIToolbar
Available on crate features
UIResponder
and UIView
and UIToolbar
only.impl UITraitEnvironment for UIVideoEditorController
Available on crate features
UINavigationController
and UIResponder
and UIViewController
and UIVideoEditorController
only.impl UITraitEnvironment for UIView
Available on crate features
UIResponder
and UIView
only.impl UITraitEnvironment for UIViewController
Available on crate features
UIResponder
and UIViewController
only.impl UITraitEnvironment for UIVisualEffectView
Available on crate features
UIResponder
and UIView
and UIVisualEffectView
only.impl UITraitEnvironment for UIWebView
Available on crate features
UIResponder
and UIView
and UIWebView
only.impl UITraitEnvironment for UIWindow
Available on crate features
UIResponder
and UIView
and UIWindow
only.impl UITraitEnvironment for UIWindowScene
Available on crate features
UIResponder
and UIScene
and UIWindowScene
only.