How to detect in my app device is currently connected to vehicle Carplay
<p>I googled lot but i did not get any hint. I want callback in my app when device is connect to carplay using cable.</p>

<p>I tried EAAccessory framework <strong>(EAAccessoryDidConnectNotification
 and EAAccessoryDidDisconnectNotification)</strong> for detection. But i can't differentiate device used for carplay or USB(charging purpose), I am getting callback for both event. </p>

<p>Please give me any solution.</p>

<p>Thanks in advance.</p>