public interface VehicleInterface extends VehicleDataSource, VehicleDataSink
VehicleDataSource are used to receive data from the
vehicle, and the methods of VehicleDataSink are used to send data
back to the vehicle.
Implementation of this interface are expected to have a constructor that
accepts (Context context, String resource) where "context" is an active Android
application context (used to be able to refer to Android services and system
managers) and "resource" is a String, the format of which is defined by the
implementer (e.g. a URI, a MAC address, etc).| Modifier and Type | Method and Description |
|---|---|
boolean |
isConnected()
Return true if the interface is actively connected to the vehicle.
|
boolean |
setResource(java.lang.String resource)
Change the resource used by the instance to connect to the interface,
restarting any necessary services.
|
setCallback, stoponPipelineActivated, onPipelineDeactivatedreceive, stopboolean setResource(java.lang.String resource)
throws DataSourceException
resource - The new resource to use for the interface.DataSourceExceptionboolean isConnected()
isConnected in interface VehicleDataSource