This class controls and filter the sensor data provided by the magnetic and the accelerometer sensors. More...
Classes | |
enum | BeyondarSensorManagerSingleton |
Static Public Member Functions | |
static void | registerSensorListener (BeyondarSensorListener beyondarSensorListener) |
Add a new BeyondarSensorListener to the sensor manager. More... | |
static void | unregisterSensorListener (BeyondarSensorListener sensorEventListener) |
Remove the existing BeyondarSensorListener from the sensor manager. More... | |
static void | pause (SensorManager sensorManager) |
This method will unregister the BeyondarSensorManager form the android SensorManager, so all the BeyondarSensorListener will stop receiving notifications when the sensor changes. More... | |
static void | resume (SensorManager sensorManager) |
This method will register the BeyondarSensorManager in the android SensorManager, so when a new value comes it will filter it and send it to all the BeyondarSensorListener. More... | |
Static Public Attributes | |
static final int | SENSOR_DELAY = SensorManager.SENSOR_DELAY_GAME |
Default sensor delay. | |
This class controls and filter the sensor data provided by the magnetic and the accelerometer sensors.
|
static |
This method will unregister the BeyondarSensorManager form the android SensorManager, so all the BeyondarSensorListener will stop receiving notifications when the sensor changes.
This will also decrease the battery consumption.
sensorManager |
|
static |
Add a new BeyondarSensorListener to the sensor manager.
beyondarSensorListener |
|
static |
This method will register the BeyondarSensorManager in the android SensorManager, so when a new value comes it will filter it and send it to all the BeyondarSensorListener.
sensorManager |
|
static |
Remove the existing BeyondarSensorListener from the sensor manager.
sensorEventListener |