public interface MotionSensor
Modifier and Type | Interface and Description |
---|---|
static class |
MotionSensor.SensorType |
Modifier and Type | Method and Description |
---|---|
void |
onLocationChanged(double longitude,
double latitude)
Called when the location has changed.
|
void |
onSensorChanged(SensorEvent event)
Called when there is a change in the sensor data.
|
void |
onSimulateSensorEvent(MotionSensor.SensorType type)
Simulate sensor events, send events to cloud devices and trigger events
|
void onSensorChanged(SensorEvent event)
event
- The sensor event containing the data from the sensor.SensorEvent
,
android.hardware.Sensor
void onLocationChanged(double longitude, double latitude)
longitude
- The new location, as a Location object.latitude
- The new location, as a Location object.Location
void onSimulateSensorEvent(MotionSensor.SensorType type)
type
- event type