public interface VehicleInterface extends VehicleDataSource, VehicleDataSink
VehicleDataSourceare used to receive data from the vehicle, and the methods of
VehicleDataSinkare 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|
Return true if the interface is actively connected to the vehicle.
Change the resource used by the instance to connect to the interface, restarting any necessary services.
boolean setResource(java.lang.String resource) throws DataSourceException
resource- The new resource to use for the interface.