CarKeyRemoteControlSession
The object that manages communication with the vehicles you manufacture.
Declaration
class CarKeyRemoteControlSessionOverview
A CarKeyRemoteControlSession object coordinates interactions between your app and your company’s make of vehicles. This object works with the system to transmit data securely to and from a vehicle, and to report results back to your app. Use this object to send commands or data directly to a vehicle, and to get information about the available vehicles and their current configuration.
Don’t create this object directly. Instead, call the start(delegate:subscriptionRange:with:) method to create a new session object. When you finish interacting with the vehicle, call the session’s end() method to close out the session and prevent further access. You can have only one active session at a time. If you try to start a second session, start(delegate:subscriptionRange:with:) doesn’t return until the currently active session becomes invalid.
When you configure a new session, provide a delegate object to receive data from vehicle-initiated transfers. The system also uses your delegate notify you when the configuration of a vehicle changes. For example, it lets you know when connectivity to the vehicle changes. The delegate must adopt the CarKeyRemoteControlSessionDelegate protocol.