templateApplicationScene(_:didDisconnectInterfaceController:)
Tells the delegate when CarPlay removes a scene from the app.
Declaration
optional func templateApplicationScene(_ templateApplicationScene: CPTemplateApplicationScene, didDisconnectInterfaceController interfaceController: CPInterfaceController)Parameters
- templateApplicationScene:
The scene disconnecting from the app.
- interfaceController:
The interface controller for managing the user interface of this scene.
Discussion
CarPlay calls this method after it disconnects the scene. You can use it to perform any cleanup.