All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.openxc.sources.ContextualVehicleDataSource Maven / Gradle / Ivy

There is a newer version: 5.2
Show newest version
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