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§

source

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

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

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

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

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,

Available on crate features UIOrientation and UIResponder and UITraitCollection and UIView only.
source

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

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

unsafe 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.

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.
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§