#[repr(C)]pub struct UIWindowScene { /* private fields */ }
UIResponder
and UIScene
and UIWindowScene
only.Expand description
Implementations§
Source§impl UIWindowScene
UIFocusSystem.
impl UIWindowScene
UIFocusSystem.
Sourcepub unsafe fn focusSystem(&self) -> Option<Retained<UIFocusSystem>>
Available on crate feature UIFocusSystem
only.
pub unsafe fn focusSystem(&self) -> Option<Retained<UIFocusSystem>>
UIFocusSystem
only.Returns the focus system that is responsible for this scene or nil if this scene does not support focus.
Source§impl UIWindowScene
UIScreenshotService.
impl UIWindowScene
UIScreenshotService.
Sourcepub unsafe fn screenshotService(&self) -> Option<Retained<UIScreenshotService>>
Available on crate feature UIScreenshotService
only.
pub unsafe fn screenshotService(&self) -> Option<Retained<UIScreenshotService>>
UIScreenshotService
only.The screenshot object associated with the scene
This is non-null if the screenshot service is available for this window scene
Source§impl UIWindowScene
StatusBarManager.
impl UIWindowScene
StatusBarManager.
pub unsafe fn statusBarManager(&self) -> Option<Retained<UIStatusBarManager>>
UIStatusBarManager
only.Source§impl UIWindowScene
impl UIWindowScene
pub unsafe fn screen(&self) -> Retained<UIScreen>
UIScreen
only.pub unsafe fn interfaceOrientation(&self) -> UIInterfaceOrientation
UIOrientation
only.pub unsafe fn coordinateSpace( &self, ) -> Retained<ProtocolObject<dyn UICoordinateSpace>>
UIView
only.pub unsafe fn traitCollection(&self) -> Retained<UITraitCollection>
UITraitCollection
only.pub unsafe fn requestGeometryUpdateWithPreferences_errorHandler( &self, geometry_preferences: &UIWindowSceneGeometryPreferences, error_handler: Option<&DynBlock<dyn Fn(NonNull<NSError>)>>, )
UIWindowSceneGeometryPreferences
and block2
only.pub unsafe fn effectiveGeometry(&self) -> Retained<UIWindowSceneGeometry>
UIWindowSceneGeometry
only.pub unsafe fn sizeRestrictions( &self, ) -> Option<Retained<UISceneSizeRestrictions>>
pub unsafe fn windows(&self) -> Retained<NSArray<UIWindow>>
UIView
and UIWindow
only.pub unsafe fn keyWindow(&self) -> Option<Retained<UIWindow>>
UIView
and UIWindow
only.Sourcepub unsafe fn activityItemsConfigurationSource(
&self,
) -> Option<Retained<ProtocolObject<dyn UIActivityItemsConfigurationProviding>>>
Available on crate feature UIActivityItemsConfigurationReading
only.
pub unsafe fn activityItemsConfigurationSource( &self, ) -> Option<Retained<ProtocolObject<dyn UIActivityItemsConfigurationProviding>>>
UIActivityItemsConfigurationReading
only.An optional object used as a source of scene-level activity items configuration
If this property returns
nil,
the
activityItemsConfiguration
property of the most-presented view controller
of the scene’s key window will be used for scene-level sharing and activities.
Sourcepub unsafe fn setActivityItemsConfigurationSource(
&self,
activity_items_configuration_source: Option<&ProtocolObject<dyn UIActivityItemsConfigurationProviding>>,
)
Available on crate feature UIActivityItemsConfigurationReading
only.
pub unsafe fn setActivityItemsConfigurationSource( &self, activity_items_configuration_source: Option<&ProtocolObject<dyn UIActivityItemsConfigurationProviding>>, )
UIActivityItemsConfigurationReading
only.This is a weak property.
Setter for activityItemsConfigurationSource
.
Sourcepub unsafe fn windowingBehaviors(
&self,
) -> Option<Retained<UISceneWindowingBehaviors>>
Available on crate feature UISceneWindowingBehaviors
only.
pub unsafe fn windowingBehaviors( &self, ) -> Option<Retained<UISceneWindowingBehaviors>>
UISceneWindowingBehaviors
only.Additional window behaviors which may be platform specific. This property will be nil on unsupported platforms, otherwise will provide a mutable object for window behavior customization.
pub unsafe fn isFullScreen(&self) -> bool
Source§impl UIWindowScene
Methods declared on superclass UIScene
.
impl UIWindowScene
Methods declared on superclass UIScene
.
pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>
pub unsafe fn initWithSession_connectionOptions( this: Allocated<Self>, session: &UISceneSession, connection_options: &UISceneConnectionOptions, ) -> Retained<Self>
UISceneOptions
and UISceneSession
only.Source§impl UIWindowScene
impl UIWindowScene
pub unsafe fn traitOverrides( &self, ) -> Retained<ProtocolObject<dyn UITraitOverrides>>
UITraitCollection
only.Methods from Deref<Target = UIScene>§
pub unsafe fn pointerLockState(&self) -> Option<Retained<UIPointerLockState>>
UIPointerLockState
only.pub unsafe fn session(&self) -> Retained<UISceneSession>
UISceneSession
only.pub unsafe fn delegate( &self, ) -> Option<Retained<ProtocolObject<dyn UISceneDelegate>>>
Sourcepub unsafe fn setDelegate(
&self,
delegate: Option<&ProtocolObject<dyn UISceneDelegate>>,
)
pub unsafe fn setDelegate( &self, delegate: Option<&ProtocolObject<dyn UISceneDelegate>>, )
Setter for delegate
.
pub unsafe fn activationState(&self) -> UISceneActivationState
UISceneDefinitions
only.pub unsafe fn openURL_options_completionHandler( &self, url: &NSURL, options: Option<&UISceneOpenExternalURLOptions>, completion: Option<&DynBlock<dyn Fn(Bool)>>, )
UISceneOptions
and block2
only.pub unsafe fn title(&self) -> Retained<NSString>
pub unsafe fn subtitle(&self) -> Retained<NSString>
Sourcepub unsafe fn setSubtitle(&self, subtitle: &NSString)
pub unsafe fn setSubtitle(&self, subtitle: &NSString)
Setter for subtitle
.
pub unsafe fn activationConditions( &self, ) -> Retained<UISceneActivationConditions>
UISceneActivationConditions
only.Sourcepub unsafe fn setActivationConditions(
&self,
activation_conditions: &UISceneActivationConditions,
)
Available on crate feature UISceneActivationConditions
only.
pub unsafe fn setActivationConditions( &self, activation_conditions: &UISceneActivationConditions, )
UISceneActivationConditions
only.Setter for activationConditions
.
pub unsafe fn extendStateRestoration(&self)
UISceneEnhancedStateRestoration
only.pub unsafe fn completeStateRestoration(&self)
UISceneEnhancedStateRestoration
only.pub unsafe fn systemProtectionManager( &self, ) -> Option<Retained<UISceneSystemProtectionManager>>
UISceneSystemProtectionManager
only.Methods from Deref<Target = UIResponder>§
pub unsafe fn nextResponder(&self) -> Option<Retained<UIResponder>>
pub unsafe fn canBecomeFirstResponder(&self) -> bool
pub unsafe fn becomeFirstResponder(&self) -> bool
pub unsafe fn canResignFirstResponder(&self) -> bool
pub unsafe fn resignFirstResponder(&self) -> bool
pub unsafe fn isFirstResponder(&self) -> bool
pub unsafe fn touchesBegan_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, )
UIEvent
and UITouch
only.pub unsafe fn touchesMoved_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, )
UIEvent
and UITouch
only.pub unsafe fn touchesEnded_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, )
UIEvent
and UITouch
only.pub unsafe fn touchesCancelled_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, )
UIEvent
and UITouch
only.pub unsafe fn touchesEstimatedPropertiesUpdated(&self, touches: &NSSet<UITouch>)
UITouch
only.pub unsafe fn pressesBegan_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent>, )
UIEvent
and UIPress
and UIPressesEvent
only.pub unsafe fn pressesChanged_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent>, )
UIEvent
and UIPress
and UIPressesEvent
only.pub unsafe fn pressesEnded_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent>, )
UIEvent
and UIPress
and UIPressesEvent
only.pub unsafe fn pressesCancelled_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent>, )
UIEvent
and UIPress
and UIPressesEvent
only.pub unsafe fn motionBegan_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent>, )
UIEvent
only.pub unsafe fn motionEnded_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent>, )
UIEvent
only.pub unsafe fn motionCancelled_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent>, )
UIEvent
only.pub unsafe fn remoteControlReceivedWithEvent(&self, event: Option<&UIEvent>)
UIEvent
only.pub unsafe fn canPerformAction_withSender( &self, action: Sel, sender: Option<&AnyObject>, ) -> bool
pub unsafe fn targetForAction_withSender( &self, action: Sel, sender: Option<&AnyObject>, ) -> Option<Retained<AnyObject>>
pub unsafe fn buildMenuWithBuilder( &self, builder: &ProtocolObject<dyn UIMenuBuilder>, )
UIMenuBuilder
only.pub unsafe fn validateCommand(&self, command: &UICommand)
UICommand
and UIMenuElement
only.pub unsafe fn undoManager(&self) -> Option<Retained<NSUndoManager>>
pub unsafe fn editingInteractionConfiguration( &self, ) -> UIEditingInteractionConfiguration
pub unsafe fn keyCommands(&self) -> Option<Retained<NSArray<UIKeyCommand>>>
UICommand
and UIKeyCommand
and UIMenuElement
only.pub unsafe fn inputView(&self) -> Option<Retained<UIView>>
UIView
only.pub unsafe fn inputAccessoryView(&self) -> Option<Retained<UIView>>
UIView
only.Sourcepub unsafe fn inputAssistantItem(&self) -> Retained<UITextInputAssistantItem>
Available on crate feature UITextInput
only.
pub unsafe fn inputAssistantItem(&self) -> Retained<UITextInputAssistantItem>
UITextInput
only.This method is for clients that wish to put buttons on the Shortcuts Bar, shown on top of the keyboard. You may modify the returned inputAssistantItem to add to or replace the existing items on the bar. Modifications made to the returned UITextInputAssistantItem are reflected automatically. This method should not be overridden. Goes up the responder chain.
pub unsafe fn inputViewController( &self, ) -> Option<Retained<UIInputViewController>>
UIInputViewController
and UIViewController
only.pub unsafe fn inputAccessoryViewController( &self, ) -> Option<Retained<UIInputViewController>>
UIInputViewController
and UIViewController
only.pub unsafe fn textInputMode(&self) -> Option<Retained<UITextInputMode>>
UITextInput
only.pub unsafe fn textInputContextIdentifier(&self) -> Option<Retained<NSString>>
pub unsafe fn reloadInputViews(&self)
pub unsafe fn userActivity(&self) -> Option<Retained<NSUserActivity>>
Sourcepub unsafe fn setUserActivity(&self, user_activity: Option<&NSUserActivity>)
pub unsafe fn setUserActivity(&self, user_activity: Option<&NSUserActivity>)
Setter for userActivity
.
pub unsafe fn updateUserActivityState(&self, activity: &NSUserActivity)
pub unsafe fn restoreUserActivityState(&self, activity: &NSUserActivity)
pub unsafe fn captureTextFromCamera(&self, sender: Option<&AnyObject>)
pub unsafe fn activityItemsConfiguration( &self, ) -> Option<Retained<ProtocolObject<dyn UIActivityItemsConfigurationReading>>>
UIResponder_UIActivityItemsConfiguration
and UIActivityItemsConfigurationReading
only.Sourcepub unsafe fn setActivityItemsConfiguration(
&self,
activity_items_configuration: Option<&ProtocolObject<dyn UIActivityItemsConfigurationReading>>,
)
Available on crate features UIResponder_UIActivityItemsConfiguration
and UIActivityItemsConfigurationReading
only.
pub unsafe fn setActivityItemsConfiguration( &self, activity_items_configuration: Option<&ProtocolObject<dyn UIActivityItemsConfigurationReading>>, )
UIResponder_UIActivityItemsConfiguration
and UIActivityItemsConfigurationReading
only.Setter for activityItemsConfiguration
.
Methods from Deref<Target = NSObject>§
Sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Handle messages the object doesn’t recognize.
See Apple’s documentation for details.
Methods from Deref<Target = AnyObject>§
Sourcepub fn class(&self) -> &'static AnyClass
Available on crate feature UIIndirectScribbleInteraction
only.
pub fn class(&self) -> &'static AnyClass
UIIndirectScribbleInteraction
only.Dynamically find the class of this object.
§Panics
May panic if the object is invalid (which may be the case for objects
returned from unavailable init
/new
methods).
§Example
Check that an instance of NSObject
has the precise class NSObject
.
use objc2::ClassType;
use objc2::runtime::NSObject;
let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());
Sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load
instead.Available on crate feature UIIndirectScribbleInteraction
only.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load
instead.UIIndirectScribbleInteraction
only.Use Ivar::load
instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T
.
See Ivar::load_ptr
for details surrounding this.
Sourcepub fn downcast_ref<T>(&self) -> Option<&T>where
T: DowncastTarget,
Available on crate feature UIIndirectScribbleInteraction
only.
pub fn downcast_ref<T>(&self) -> Option<&T>where
T: DowncastTarget,
UIIndirectScribbleInteraction
only.Attempt to downcast the object to a class of type T
.
This is the reference-variant. Use Retained::downcast
if you want
to convert a retained object to another type.
§Mutable classes
Some classes have immutable and mutable variants, such as NSString
and NSMutableString
.
When some Objective-C API signature says it gives you an immutable class, it generally expects you to not mutate that, even though it may technically be mutable “under the hood”.
So using this method to convert a NSString
to a NSMutableString
,
while not unsound, is generally frowned upon unless you created the
string yourself, or the API explicitly documents the string to be
mutable.
See Apple’s documentation on mutability and on
isKindOfClass:
for more details.
§Generic classes
Objective-C generics are called “lightweight generics”, and that’s because they aren’t exposed in the runtime. This makes it impossible to safely downcast to generic collections, so this is disallowed by this method.
You can, however, safely downcast to generic collections where all the
type-parameters are AnyObject
.
§Panics
This works internally by calling isKindOfClass:
. That means that the
object must have the instance method of that name, and an exception
will be thrown (if CoreFoundation is linked) or the process will abort
if that is not the case. In the vast majority of cases, you don’t need
to worry about this, since both root objects NSObject
and
NSProxy
implement this method.
§Examples
Cast an NSString
back and forth from NSObject
.
use objc2::rc::Retained;
use objc2_foundation::{NSObject, NSString};
let obj: Retained<NSObject> = NSString::new().into_super();
let string = obj.downcast_ref::<NSString>().unwrap();
// Or with `downcast`, if we do not need the object afterwards
let string = obj.downcast::<NSString>().unwrap();
Try (and fail) to cast an NSObject
to an NSString
.
use objc2_foundation::{NSObject, NSString};
let obj = NSObject::new();
assert!(obj.downcast_ref::<NSString>().is_none());
Try to cast to an array of strings.
use objc2_foundation::{NSArray, NSObject, NSString};
let arr = NSArray::from_retained_slice(&[NSObject::new()]);
// This is invalid and doesn't type check.
let arr = arr.downcast_ref::<NSArray<NSString>>();
This fails to compile, since it would require enumerating over the array to ensure that each element is of the desired type, which is a performance pitfall.
Downcast when processing each element instead.
use objc2_foundation::{NSArray, NSObject, NSString};
let arr = NSArray::from_retained_slice(&[NSObject::new()]);
for elem in arr {
if let Some(data) = elem.downcast_ref::<NSString>() {
// handle `data`
}
}
Trait Implementations§
Source§impl AsRef<AnyObject> for UIWindowScene
impl AsRef<AnyObject> for UIWindowScene
Source§impl AsRef<NSObject> for UIWindowScene
impl AsRef<NSObject> for UIWindowScene
Source§impl AsRef<UIResponder> for UIWindowScene
impl AsRef<UIResponder> for UIWindowScene
Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIScene> for UIWindowScene
impl AsRef<UIScene> for UIWindowScene
Source§impl AsRef<UIWindowScene> for UIWindowScene
impl AsRef<UIWindowScene> for UIWindowScene
Source§impl Borrow<AnyObject> for UIWindowScene
impl Borrow<AnyObject> for UIWindowScene
Source§impl Borrow<NSObject> for UIWindowScene
impl Borrow<NSObject> for UIWindowScene
Source§impl Borrow<UIResponder> for UIWindowScene
impl Borrow<UIResponder> for UIWindowScene
Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIScene> for UIWindowScene
impl Borrow<UIScene> for UIWindowScene
Source§impl ClassType for UIWindowScene
impl ClassType for UIWindowScene
Source§const NAME: &'static str = "UIWindowScene"
const NAME: &'static str = "UIWindowScene"
Source§type ThreadKind = dyn MainThreadOnly
type ThreadKind = dyn MainThreadOnly
Source§impl Debug for UIWindowScene
impl Debug for UIWindowScene
Source§impl Deref for UIWindowScene
impl Deref for UIWindowScene
Source§impl Hash for UIWindowScene
impl Hash for UIWindowScene
Source§impl Message for UIWindowScene
impl Message for UIWindowScene
Source§impl NSObjectProtocol for UIWindowScene
impl NSObjectProtocol for UIWindowScene
Source§fn isEqual(&self, other: Option<&AnyObject>) -> bool
fn isEqual(&self, other: Option<&AnyObject>) -> bool
Source§fn hash(&self) -> usize
fn hash(&self) -> usize
Source§fn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
Source§fn is_kind_of<T>(&self) -> bool
fn is_kind_of<T>(&self) -> bool
isKindOfClass
directly, or cast your objects with AnyObject::downcast_ref
Source§fn isMemberOfClass(&self, cls: &AnyClass) -> bool
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
Source§fn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
Source§fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
Source§fn debugDescription(&self) -> Retained<NSObject>
fn debugDescription(&self) -> Retained<NSObject>
Source§impl PartialEq for UIWindowScene
impl PartialEq for UIWindowScene
Source§impl RefEncode for UIWindowScene
impl RefEncode for UIWindowScene
Source§const ENCODING_REF: Encoding = <UIScene as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <UIScene as ::objc2::RefEncode>::ENCODING_REF
Source§impl UIResponderStandardEditActions for UIWindowScene
impl UIResponderStandardEditActions for UIWindowScene
Source§unsafe fn copy(&self, sender: Option<&AnyObject>)
unsafe fn copy(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn paste(&self, sender: Option<&AnyObject>)
unsafe fn paste(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn pasteAndMatchStyle(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndMatchStyle(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn pasteAndGo(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndGo(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn pasteAndSearch(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndSearch(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn select(&self, sender: Option<&AnyObject>)
unsafe fn select(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn selectAll(&self, sender: Option<&AnyObject>)
unsafe fn selectAll(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn delete(&self, sender: Option<&AnyObject>)
unsafe fn delete(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn makeTextWritingDirectionLeftToRight(&self, sender: Option<&AnyObject>)
unsafe fn makeTextWritingDirectionLeftToRight(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn makeTextWritingDirectionRightToLeft(&self, sender: Option<&AnyObject>)
unsafe fn makeTextWritingDirectionRightToLeft(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn toggleBoldface(&self, sender: Option<&AnyObject>)
unsafe fn toggleBoldface(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn toggleItalics(&self, sender: Option<&AnyObject>)
unsafe fn toggleItalics(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn toggleUnderline(&self, sender: Option<&AnyObject>)
unsafe fn toggleUnderline(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn increaseSize(&self, sender: Option<&AnyObject>)
unsafe fn increaseSize(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn decreaseSize(&self, sender: Option<&AnyObject>)
unsafe fn decreaseSize(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn find(&self, sender: Option<&AnyObject>)
unsafe fn find(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn findAndReplace(&self, sender: Option<&AnyObject>)
unsafe fn findAndReplace(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn findNext(&self, sender: Option<&AnyObject>)
unsafe fn findNext(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn findPrevious(&self, sender: Option<&AnyObject>)
unsafe fn findPrevious(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn useSelectionForFind(&self, sender: Option<&AnyObject>)
unsafe fn useSelectionForFind(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn updateTextAttributesWithConversionHandler(
&self,
conversion_handler: UITextAttributesConversionHandler,
)
unsafe fn updateTextAttributesWithConversionHandler( &self, conversion_handler: UITextAttributesConversionHandler, )
UIResponder
and block2
only.Source§unsafe fn print(&self, sender: Option<&AnyObject>)
unsafe fn print(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn rename(&self, sender: Option<&AnyObject>)
unsafe fn rename(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn duplicate(&self, sender: Option<&AnyObject>)
unsafe fn duplicate(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§unsafe fn move(&self, sender: Option<&AnyObject>)
unsafe fn move(&self, sender: Option<&AnyObject>)
UIResponder
only.Source§impl UITraitChangeObservable for UIWindowScene
impl UITraitChangeObservable for UIWindowScene
Source§unsafe fn unregisterForTraitChanges(
&self,
registration: &ProtocolObject<dyn UITraitChangeRegistration>,
)
unsafe fn unregisterForTraitChanges( &self, registration: &ProtocolObject<dyn UITraitChangeRegistration>, )
UITraitCollection
only.Source§impl UITraitEnvironment for UIWindowScene
impl UITraitEnvironment for UIWindowScene
Source§fn traitCollection(&self) -> Retained<UITraitCollection>
fn traitCollection(&self) -> Retained<UITraitCollection>
UITraitCollection
only.Source§unsafe fn traitCollectionDidChange(
&self,
previous_trait_collection: Option<&UITraitCollection>,
)
unsafe fn traitCollectionDidChange( &self, previous_trait_collection: Option<&UITraitCollection>, )
UITraitCollection
only.impl DowncastTarget for UIWindowScene
impl Eq for UIWindowScene
Auto Trait Implementations§
impl !Freeze for UIWindowScene
impl !RefUnwindSafe for UIWindowScene
impl !Send for UIWindowScene
impl !Sync for UIWindowScene
impl !Unpin for UIWindowScene
impl !UnwindSafe for UIWindowScene
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<'a, T> MainThreadOnly for T
impl<'a, T> MainThreadOnly for T
Source§fn mtm(&self) -> MainThreadMarker
fn mtm(&self) -> MainThreadMarker
MainThreadMarker
from the main-thread-only object. Read more