Trait objc2_ui_kit::UIWindowSceneDelegate
source · pub unsafe trait UIWindowSceneDelegate: UISceneDelegate + IsMainThreadOnly {
// Provided methods
unsafe fn window(&self) -> Option<Retained<UIWindow>>
where Self: Sized + Message { ... }
unsafe fn setWindow(&self, window: Option<&UIWindow>)
where Self: Sized + Message { ... }
unsafe 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 { ... }
unsafe fn windowScene_performActionForShortcutItem_completionHandler(
&self,
window_scene: &UIWindowScene,
shortcut_item: &UIApplicationShortcutItem,
completion_handler: &Block<dyn Fn(Bool)>
)
where Self: Sized + Message { ... }
unsafe fn windowScene_userDidAcceptCloudKitShareWithMetadata(
&self,
window_scene: &UIWindowScene,
cloud_kit_share_metadata: &CKShareMetadata
)
where Self: Sized + Message { ... }
}Available on crate features
UIScene and UIWindowScene only.Provided Methods§
unsafe fn window(&self) -> Option<Retained<UIWindow>>
Available on crate features
UIResponder and UIView and UIWindow only.unsafe fn setWindow(&self, window: Option<&UIWindow>)
Available on crate features
UIResponder and UIView and UIWindow only.unsafe fn windowScene_didUpdateCoordinateSpace_interfaceOrientation_traitCollection( &self, window_scene: &UIWindowScene, previous_coordinate_space: &ProtocolObject<dyn UICoordinateSpace>, previous_interface_orientation: UIInterfaceOrientation, previous_trait_collection: &UITraitCollection )
Available on crate features
UIOrientation and UIResponder and UITraitCollection and UIView only.unsafe fn windowScene_performActionForShortcutItem_completionHandler( &self, window_scene: &UIWindowScene, shortcut_item: &UIApplicationShortcutItem, completion_handler: &Block<dyn Fn(Bool)> )
Available on crate features
UIApplicationShortcutItem and UIResponder and block2 only.Available on crate features
UIResponder and objc2-cloud-kit only.