One Logo Pool Ball
UIKit · IOS API REFERENCE

UIScene

class · iOS 13.0+ · SDK 27.1

@MainActor class UIScene

Members (25)

get · iOS 13.0+

didActivateNotification

TypeScript
static get didActivateNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let didActivateNotification: NSNotification.Name
get · iOS 13.0+

didDisconnectNotification

TypeScript
static get didDisconnectNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let didDisconnectNotification: NSNotification.Name
get · iOS 13.0+

didEnterBackgroundNotification

TypeScript
static get didEnterBackgroundNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let didEnterBackgroundNotification: NSNotification.Name
get · iOS 18.0+

systemProtectionDidChangeNotification

TypeScript
static get systemProtectionDidChangeNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let systemProtectionDidChangeNotification: NSNotification.Name
get · iOS 13.0+

willConnectNotification

TypeScript
static get willConnectNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let willConnectNotification: NSNotification.Name
get · iOS 13.0+

willDeactivateNotification

TypeScript
static get willDeactivateNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let willDeactivateNotification: NSNotification.Name
get · iOS 13.0+

willEnterForegroundNotification

TypeScript
static get willEnterForegroundNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let willEnterForegroundNotification: NSNotification.Name
method · iOS 15.0+

completeStateRestoration

TypeScript
completeStateRestoration(): Promise<void>
Swift declaration
func completeStateRestoration()
method · iOS 15.0+

extendStateRestoration

TypeScript
extendStateRestoration(): Promise<void>
Swift declaration
func extendStateRestoration()
init · iOS 13.0+

init

TypeScript
static init(session: UISceneSession, connectionOptions: UIScene_ConnectionOptions): Promise<UIScene>
Swift declaration
init(session: UISceneSession, connectionOptions: UIScene.ConnectionOptions)
method · iOS 13.0+

open

TypeScript
open(url: string, options?: (UIScene_OpenExternalURLOptions) | null, completion?: (((arg0: boolean) => void)) | null): Promise<void>
Swift declaration
func open(_ url: URL, options: UIScene.OpenExternalURLOptions?) async -> Bool
get · iOS 13.0+

activationConditions

TypeScript
get activationConditions(): Promise<UISceneActivationConditions>
Swift declaration
var activationConditions: UISceneActivationConditions { get set }
set · iOS 13.0+

activationConditions

TypeScript
setActivationConditions(value: UISceneActivationConditions): Promise<void>
Swift declaration
var activationConditions: UISceneActivationConditions { get set }
get · iOS 13.0+

activationState

TypeScript
get activationState(): Promise<UIScene_ActivationState>
Swift declaration
var activationState: UIScene.ActivationState { get }
get · iOS 13.0+

delegate

TypeScript
get delegate(): Promise<(SDKHandle) | null>
Swift declaration
var delegate: (any UISceneDelegate)? { get set }
set · iOS 13.0+

delegate

TypeScript
setDelegate(value?: (Implements<UISceneDelegate> | SDKHandle) | null): Promise<void>
Swift declaration
var delegate: (any UISceneDelegate)? { get set }
get · iOS 14.0+

pointerLockState

TypeScript
get pointerLockState(): Promise<(UIPointerLockState) | null>
Swift declaration
var pointerLockState: UIPointerLockState? { get }
get · iOS 13.0+

session

TypeScript
get session(): Promise<UISceneSession>
Swift declaration
var session: UISceneSession { get }
get · iOS 15.0+

subtitle

TypeScript
get subtitle(): Promise<string>
Swift declaration
var subtitle: String { get set }
set · iOS 15.0+

subtitle

TypeScript
setSubtitle(value: string): Promise<void>
Swift declaration
var subtitle: String { get set }
get · iOS 18.0+

systemProtectionManager

TypeScript
get systemProtectionManager(): Promise<(UIScene_SystemProtectionManager) | null>
Swift declaration
var systemProtectionManager: UIScene.SystemProtectionManager? { get }
get · iOS 13.0+

title

TypeScript
get title(): Promise<(string) | null>
Swift declaration
var title: String! { get set }
set · iOS 13.0+

title

TypeScript
setTitle(value?: (string) | null): Promise<void>
Swift declaration
var title: String! { get set }
get · iOS 26.0+

destructionConditions

TypeScript
get destructionConditions(): Promise<Array<UIScene_DestructionCondition>>
Swift declaration
@MainActor @preconcurrency var destructionConditions: Set<UIScene.DestructionCondition> { get set }
set · iOS 26.0+

destructionConditions

TypeScript
setDestructionConditions(value: Array<UIScene_DestructionCondition>): Promise<void>
Swift declaration
@MainActor @preconcurrency var destructionConditions: Set<UIScene.DestructionCondition> { get set }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

UIScene.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All UIKit types →