Interface CarConnectionListener
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.-
Method Summary
Modifier and TypeMethodDescriptionvoidcarConnected(CarContext context) Invoked when a head unit connects and the projected experience becomes available.voidInvoked when the head unit disconnects and the projected experience ends.
-
Method Details
-
carConnected
Invoked when a head unit connects and the projected experience becomes available.
Parameters
context: the car context for the freshly connected head unit
-
carDisconnected
void carDisconnected()Invoked when the head unit disconnects and the projected experience ends.
-