public abstract class SKAbstractGoogleServicesSensor extends SKAbstractSensor implements com.google.android.gms.common.api.GoogleApiClient.ConnectionCallbacks, com.google.android.gms.common.api.GoogleApiClient.OnConnectionFailedListener
Modifier and Type | Field and Description |
---|---|
protected com.google.android.gms.common.api.GoogleApiClient |
mClient |
isSensing, mApplicationContext, mSensorDataListeners, mSensorType
Modifier | Constructor and Description |
---|---|
protected |
SKAbstractGoogleServicesSensor(Context context,
SKSensorType sensorType) |
Modifier and Type | Method and Description |
---|---|
void |
onConnected(Bundle connectionHint) |
void |
onConnectionFailed(com.google.android.gms.common.ConnectionResult result) |
void |
onConnectionSuspended(int cause) |
protected abstract void |
serviceConnected() |
getSensorName, getSensorType, isSensing, shouldPostSensorData, submitSensorData, subscribeSensorDataListener, unsubscribeAllSensorDataListeners, unsubscribeSensorDataListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
startSensing, stopSensing
protected SKAbstractGoogleServicesSensor(Context context, SKSensorType sensorType) throws SKException
SKException
protected abstract void serviceConnected()
public void onConnected(Bundle connectionHint)
public void onConnectionSuspended(int cause)
onConnectionSuspended
in interface com.google.android.gms.common.api.GoogleApiClient.ConnectionCallbacks
public void onConnectionFailed(com.google.android.gms.common.ConnectionResult result)
onConnectionFailed
in interface com.google.android.gms.common.api.GoogleApiClient.OnConnectionFailedListener