public class RemoteListenerSource extends BaseVehicleDataSource
VehicleManager to inject message updates from a
VehicleService into an in-process data
pipeline. By using the same workflow as on the remote process side, we can
share code between remote and in-process data sources and sinks. This makes
adding new sources and sinks possible for end users, since the
VehicleService doesn't need to have every possible implementation.| Constructor and Description |
|---|
RemoteListenerSource(VehicleServiceInterface service)
Registers a message listener with the remote service.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isConnected()
Return true if the data source is actively connected to its target, be it
a USB endpoint, a Bluetooth channel, a trace file, etc.
|
void |
stop()
Clear the callback so no further updates are sent.
|
java.lang.String |
toString() |
connected, disconnected, getCallback, getTag, handleMessage, onPipelineActivated, onPipelineDeactivated, setCallback, waitForCallbackpublic RemoteListenerSource(VehicleServiceInterface service)
public void stop()
BaseVehicleDataSourcestop in interface VehicleDataSourcestop in class BaseVehicleDataSourcepublic boolean isConnected()
VehicleDataSourceisConnected in interface VehicleDataSourceisConnected in class BaseVehicleDataSourcepublic java.lang.String toString()
toString in class java.lang.Object