Skip to main content

UISceneDelegate

Trait UISceneDelegate 

Source
pub unsafe trait UISceneDelegate: NSObjectProtocol + MainThreadOnly {
Show 13 methods // Provided methods fn scene_willConnectToSession_options( &self, scene: &UIScene, session: &UISceneSession, connection_options: &UISceneConnectionOptions, ) where Self: Sized + Message { ... } fn sceneDidDisconnect(&self, scene: &UIScene) where Self: Sized + Message { ... } fn sceneDidBecomeActive(&self, scene: &UIScene) where Self: Sized + Message { ... } fn sceneWillResignActive(&self, scene: &UIScene) where Self: Sized + Message { ... } fn sceneWillEnterForeground(&self, scene: &UIScene) where Self: Sized + Message { ... } fn sceneDidEnterBackground(&self, scene: &UIScene) where Self: Sized + Message { ... } fn scene_openURLContexts( &self, scene: &UIScene, url_contexts: &NSSet<UIOpenURLContext>, ) where Self: Sized + Message { ... } fn stateRestorationActivityForScene( &self, scene: &UIScene, ) -> Option<Retained<NSUserActivity>> where Self: Sized + Message { ... } fn scene_restoreInteractionStateWithUserActivity( &self, scene: &UIScene, state_restoration_activity: &NSUserActivity, ) where Self: Sized + Message { ... } fn scene_willContinueUserActivityWithType( &self, scene: &UIScene, user_activity_type: &NSString, ) where Self: Sized + Message { ... } fn scene_continueUserActivity( &self, scene: &UIScene, user_activity: &NSUserActivity, ) where Self: Sized + Message { ... } fn scene_didFailToContinueUserActivityWithType_error( &self, scene: &UIScene, user_activity_type: &NSString, error: &NSError, ) where Self: Sized + Message { ... } fn scene_didUpdateUserActivity( &self, scene: &UIScene, user_activity: &NSUserActivity, ) where Self: Sized + Message { ... }
}
Available on crate feature UIScene only.
Expand description

Provided Methods§

Source

fn scene_willConnectToSession_options( &self, scene: &UIScene, session: &UISceneSession, connection_options: &UISceneConnectionOptions, )
where Self: Sized + Message,

Available on crate features UIResponder and UISceneOptions and UISceneSession only.
Source

fn sceneDidDisconnect(&self, scene: &UIScene)
where Self: Sized + Message,

Available on crate feature UIResponder only.
Source

fn sceneDidBecomeActive(&self, scene: &UIScene)
where Self: Sized + Message,

Available on crate feature UIResponder only.
Source

fn sceneWillResignActive(&self, scene: &UIScene)
where Self: Sized + Message,

Available on crate feature UIResponder only.
Source

fn sceneWillEnterForeground(&self, scene: &UIScene)
where Self: Sized + Message,

Available on crate feature UIResponder only.
Source

fn sceneDidEnterBackground(&self, scene: &UIScene)
where Self: Sized + Message,

Available on crate feature UIResponder only.
Source

fn scene_openURLContexts( &self, scene: &UIScene, url_contexts: &NSSet<UIOpenURLContext>, )
where Self: Sized + Message,

Available on crate features UIOpenURLContext and UIResponder only.
Source

fn stateRestorationActivityForScene( &self, scene: &UIScene, ) -> Option<Retained<NSUserActivity>>
where Self: Sized + Message,

Available on crate feature UIResponder only.
Source

fn scene_restoreInteractionStateWithUserActivity( &self, scene: &UIScene, state_restoration_activity: &NSUserActivity, )
where Self: Sized + Message,

Available on crate feature UIResponder only.
Source

fn scene_willContinueUserActivityWithType( &self, scene: &UIScene, user_activity_type: &NSString, )
where Self: Sized + Message,

Available on crate feature UIResponder only.
Source

fn scene_continueUserActivity( &self, scene: &UIScene, user_activity: &NSUserActivity, )
where Self: Sized + Message,

Available on crate feature UIResponder only.
Source

fn scene_didFailToContinueUserActivityWithType_error( &self, scene: &UIScene, user_activity_type: &NSString, error: &NSError, )
where Self: Sized + Message,

Available on crate feature UIResponder only.
Source

fn scene_didUpdateUserActivity( &self, scene: &UIScene, user_activity: &NSUserActivity, )
where Self: Sized + Message,

Available on crate feature UIResponder only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UISceneDelegate

Source§

impl ProtocolType for dyn UISceneDelegate

Source§

const NAME: &'static str = "UISceneDelegate"

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> UISceneDelegate for ProtocolObject<T>
where T: ?Sized + UISceneDelegate,

Implementors§