One Logo Pool Ball
ExtensionKit · IOS API REFERENCE

AppExtensionSceneConfiguration

struct · iOS 16.0+ · SDK 27.1

@MainActor @preconcurrency struct AppExtensionSceneConfiguration

An object you use to configure an app extension that provides a custom UI. Use this type to provide the configuration details for an <doc://com.apple.documentation/documentation/extensionfoundation/appextension> type when the corresponding app extension provides a custom UI.

Members (1)

method · iOS 16.0+

accept

TypeScript
accept(connection: _Foundation_NSXPCConnection): Promise<boolean>
Swift declaration
nonisolated func accept(connection: NSXPCConnection) -> Bool

A closure the framework calls when a host tries to connect to this extension. - Parameters: - connection: The incoming XPC connection object. - Returns: A Boolean value that indicates whether the extension accepts the connection.

Skipped declarations

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

AppExtensionSceneConfiguration.init(_:configuration:)

callback cannot propagate synchronous failure

AppExtensionSceneConfiguration.init(_:)

callback cannot propagate synchronous failure

All ExtensionKit types →