Contents

hostViewControllerDidActivate(_:)

Tells the host that the app extension is active and ready to accept an XPC connection.

Declaration

@MainActor optional func hostViewControllerDidActivate(_ viewController: EXHostViewController)

Parameters

  • viewController:

    The host view controller that initiated the connection.

Mentioned in

Discussion

The host view controller calls this method after it launches an app extension and connects to its remote scene. Use this method to establish an XPC connection to the newly created UI instance.

See Also

Responding to activation and deactivation events