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 Type
    Method
    Description
    void
    Invoked when a head unit connects and the projected experience becomes available.
    void
    Invoked when the head unit disconnects and the projected experience ends.
  • Method Details

    • carConnected

      void carConnected(CarContext context)

      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.