public interface CarConnectionListener
Notified when a head unit (Apple CarPlay / Google Android Auto) connects or disconnects. Register
with
Car#addConnectionListener(CarConnectionListener). Callbacks are delivered on the Codename
One EDT.Methods
public abstract void carConnected(CarContext context) | Invoked when a head unit connects and the projected experience becomes available. |
public abstract void carDisconnected() | Invoked when the head unit disconnects and the projected experience ends. |
Method details
carConnected
public abstract void carConnected(CarContext context)Invoked when a head unit connects and the projected experience becomes available.
Parameters
contextCarContext- the car context for the freshly connected head unit
carDisconnected
public abstract void carDisconnected()Invoked when the head unit disconnects and the projected experience ends.