public class SKLocation extends SKAbstractGoogleServicesSensor implements com.google.android.gms.location.LocationListener
mClient
isSensing, mApplicationContext, mSensorDataListeners, mSensorType
Constructor and Description |
---|
SKLocation(Context context) |
Modifier and Type | Method and Description |
---|---|
void |
onLocationChanged(android.location.Location location) |
protected void |
serviceConnected() |
protected boolean |
shouldPostSensorData(SKAbstractData data) |
void |
startSensing() |
void |
stopSensing() |
onConnected, onConnectionFailed, onConnectionSuspended
getSensorName, getSensorType, isSensing, submitSensorData, subscribeSensorDataListener, unsubscribeAllSensorDataListeners, unsubscribeSensorDataListener
public SKLocation(Context context) throws SKException
SKException
public void startSensing()
startSensing
in interface SKSensorInterface
public void stopSensing()
stopSensing
in interface SKSensorInterface
protected void serviceConnected()
serviceConnected
in class SKAbstractGoogleServicesSensor
public void onLocationChanged(android.location.Location location)
onLocationChanged
in interface com.google.android.gms.location.LocationListener
protected boolean shouldPostSensorData(SKAbstractData data)
shouldPostSensorData
in class SKAbstractSensor