public class SKLocation extends SKAbstractGoogleServicesSensor implements com.google.android.gms.location.LocationListener
mClientisSensing, 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, onConnectionSuspendedgetSensorName, getSensorType, isSensing, submitSensorData, subscribeSensorDataListener, unsubscribeAllSensorDataListeners, unsubscribeSensorDataListenerpublic SKLocation(Context context)
throws SKException
SKExceptionpublic void startSensing()
startSensing in interface SKSensorInterfacepublic void stopSensing()
stopSensing in interface SKSensorInterfaceprotected void serviceConnected()
serviceConnected in class SKAbstractGoogleServicesSensorpublic void onLocationChanged(android.location.Location location)
onLocationChanged in interface com.google.android.gms.location.LocationListenerprotected boolean shouldPostSensorData(SKAbstractData data)
shouldPostSensorData in class SKAbstractSensor