Contents

templateApplicationScene(_:didDisconnect:from:)

Tells the delegate when CarPlay removes a scene from your navigation app.

Declaration

optional func templateApplicationScene(_ templateApplicationScene: CPTemplateApplicationScene, didDisconnect interfaceController: CPInterfaceController, from window: CPWindow)

Parameters

  • templateApplicationScene:

    The scene disconnecting from the app.

  • interfaceController:

    The interface controller for managing the user interface of this scene.

  • window:

    The window where the app draws the map content.

Discussion

CarPlay calls this method after it disconnects the scene. You can use it to perform any cleanup.

See Also

Responding to the Scene Life Cycle