public void addOnVehicleInterfaceConnectedListener ( ViConnectionListener listener ) throws VehicleServiceException { if ( mRemoteService != null ) { try { mRemoteService . addViConnectionListener ( listener ) ; } catch ( RemoteException e ) { throw new VehicleServiceException ( "Unable to add connection status listener" , e ) ; } } }
Register a listener to receive a callback when the selected VI is connected .