remoteControlSession(_:didInvalidateWithError:)
Notifies your delegate object that the session become invalid for the specified reason.
Declaration
func remoteControlSession(_ session: CarKeyRemoteControlSession, didInvalidateWithError: CarKeyErrorCode)Parameters
- session:
The session that became invalid.
- didInvalidateWithError:
The error code that contains the reason for the invalid session. For a list of possible values, see Carkeyerrorcode.
Discussion
Use this method to detect if the system invalidated the session for any reason. The system executes this method on the dispatch queue you specified when you started the session.