Fork me
BeyondAR
Augmented Reality Framework for Android
 All Classes Functions Variables
com.beyondar.android.sensor.BeyondarSensorManager Class Reference

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.
 

Detailed Description

This class controls and filter the sensor data provided by the magnetic and the accelerometer sensors.

Member Function Documentation

static void com.beyondar.android.sensor.BeyondarSensorManager.pause ( SensorManager  sensorManager)
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.

Parameters
sensorManager
static void com.beyondar.android.sensor.BeyondarSensorManager.registerSensorListener ( BeyondarSensorListener  beyondarSensorListener)
static

Add a new BeyondarSensorListener to the sensor manager.

Parameters
beyondarSensorListener
static void com.beyondar.android.sensor.BeyondarSensorManager.resume ( SensorManager  sensorManager)
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.

Parameters
sensorManager
static void com.beyondar.android.sensor.BeyondarSensorManager.unregisterSensorListener ( BeyondarSensorListener  sensorEventListener)
static

Remove the existing BeyondarSensorListener from the sensor manager.

Parameters
sensorEventListener

The documentation for this class was generated from the following file: