com.openxc.sources.ContextualVehicleDataSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openxc-it Show documentation
Show all versions of openxc-it Show documentation
Instrumentation test suite for OpenXC library
package com.openxc.sources;
import android.content.Context;
/**
* A parent class for data sources that require access to an Android context.
*/
public abstract class ContextualVehicleDataSource extends BaseVehicleDataSource {
private Context mContext;
public ContextualVehicleDataSource(Context context) {
this(null, context);
}
public ContextualVehicleDataSource(SourceCallback callback,
Context context) {
super(callback);
mContext = context;
}
protected Context getContext() {
return mContext;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy