UIWindowSceneDelegate

Trait UIWindowSceneDelegate 

Source
pub unsafe trait UIWindowSceneDelegate: UISceneDelegate + MainThreadOnly {
    // Provided methods
    fn window(&self) -> Option<Retained<UIWindow>>
       where Self: Sized + Message { ... }
    fn setWindow(&self, window: Option<&UIWindow>)
       where Self: Sized + Message { ... }
    fn windowScene_didUpdateCoordinateSpace_interfaceOrientation_traitCollection(
        &self,
        window_scene: &UIWindowScene,
        previous_coordinate_space: &ProtocolObject<dyn UICoordinateSpace>,
        previous_interface_orientation: UIInterfaceOrientation,
        previous_trait_collection: &UITraitCollection,
    )
       where Self: Sized + Message { ... }
    fn windowScene_didUpdateEffectiveGeometry(
        &self,
        window_scene: &UIWindowScene,
        previous_effective_geometry: &UIWindowSceneGeometry,
    )
       where Self: Sized + Message { ... }
    fn windowScene_performActionForShortcutItem_completionHandler(
        &self,
        window_scene: &UIWindowScene,
        shortcut_item: &UIApplicationShortcutItem,
        completion_handler: &DynBlock<dyn Fn(Bool)>,
    )
       where Self: Sized + Message { ... }
    fn windowScene_userDidAcceptCloudKitShareWithMetadata(
        &self,
        window_scene: &UIWindowScene,
        cloud_kit_share_metadata: &CKShareMetadata,
    )
       where Self: Sized + Message { ... }
    fn preferredWindowingControlStyleForScene(
        &self,
        window_scene: &UIWindowScene,
    ) -> Retained<UISceneWindowingControlStyle>
       where Self: Sized + Message { ... }
}
Available on crate features UIScene and UIWindowScene only.
Expand description

Provided Methods§

Source

fn window(&self) -> Option<Retained<UIWindow>>
where Self: Sized + Message,

Available on crate features UIResponder and UIView and UIWindow only.
Source

fn setWindow(&self, window: Option<&UIWindow>)
where Self: Sized + Message,

Available on crate features UIResponder and UIView and UIWindow only.

Setter for window.

Source

fn windowScene_didUpdateCoordinateSpace_interfaceOrientation_traitCollection( &self, window_scene: &UIWindowScene, previous_coordinate_space: &ProtocolObject<dyn UICoordinateSpace>, previous_interface_orientation: UIInterfaceOrientation, previous_trait_collection: &UITraitCollection, )
where Self: Sized + Message,

👎Deprecated: Use windowScene(_: didUpdateEffectiveGeometry:) to be notified of the scene’s geometry changes, or use traits whose values are inherited from the scene via the traitCollection of views and view controllers instead.
Available on crate features UIOrientation and UIResponder and UITraitCollection and UIView only.

Called when the coordinate space, interface orientation, or trait collection of a UIWindowScene changes.

Always called when a UIWindowScene moves between screens.

Source

fn windowScene_didUpdateEffectiveGeometry( &self, window_scene: &UIWindowScene, previous_effective_geometry: &UIWindowSceneGeometry, )
where Self: Sized + Message,

Available on crate features UIResponder and UIWindowSceneGeometry only.

Called when the window scene’s effective geometry has changed.

Always called when a UIWindowScene moves between screens.

Source

fn windowScene_performActionForShortcutItem_completionHandler( &self, window_scene: &UIWindowScene, shortcut_item: &UIApplicationShortcutItem, completion_handler: &DynBlock<dyn Fn(Bool)>, )
where Self: Sized + Message,

Available on crate features UIApplicationShortcutItem and UIResponder and block2 only.
Source

fn windowScene_userDidAcceptCloudKitShareWithMetadata( &self, window_scene: &UIWindowScene, cloud_kit_share_metadata: &CKShareMetadata, )
where Self: Sized + Message,

Available on crate features UIResponder and objc2-cloud-kit only.
Source

fn preferredWindowingControlStyleForScene( &self, window_scene: &UIWindowScene, ) -> Retained<UISceneWindowingControlStyle>
where Self: Sized + Message,

Available on crate features UIResponder and UISceneWindowingControlStyle only.

Called by the system to determine the windowing control style for the provided scene. automaticStyle will be used if this method is not implemented.

Trait Implementations§

Source§

impl ProtocolType for dyn UIWindowSceneDelegate

Source§

const NAME: &'static str = "UIWindowSceneDelegate"

The name of the Objective-C protocol that this type represents. Read more
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 UIWindowSceneDelegate

Implementations on Foreign Types§

Source§

impl<T> UIWindowSceneDelegate for ProtocolObject<T>

Implementors§