com.dopanic.panicsensorkit
Class PSKSensorManager

java.lang.Object
  extended by com.dopanic.panicsensorkit.PSKSensorManager
All Implemented Interfaces:
PSKEventListener

public class PSKSensorManager
extends java.lang.Object
implements PSKEventListener


Constructor Summary
PSKSensorManager()
           
 
Method Summary
 void clearSimulatedLocation()
          clear simulated location
 PSKEventListener getEventListener()
           
 float getHeadingAccuracyMax()
           
 float getHeadingAccuracyMin()
          Returns the accuracy value
 LocationManager getLocationManager()
           
 PSKSensorManagerListener getSensorListener()
           
static PSKSensorManager getSharedSensorManager()
          shared sensor manager instance
 void onDeviceOrientationChanged(PSKDeviceOrientation newOrientation)
           
 void onLocationChangedEvent(Location location)
           
 void setEventListener(PSKEventListener eventListener)
           
 void setSensorListener(PSKSensorManagerListener sensorListener)
           
protected  void setSimulatedLocation(double latitude, double longitude, double altitude)
          Manually sets a simulated location
 boolean startListening()
           
 void stopListening()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PSKSensorManager

public PSKSensorManager()
Method Detail

getSharedSensorManager

public static PSKSensorManager getSharedSensorManager()
shared sensor manager instance


getHeadingAccuracyMin

public float getHeadingAccuracyMin()
Returns the accuracy value

Returns:

getHeadingAccuracyMax

public float getHeadingAccuracyMax()

getEventListener

public PSKEventListener getEventListener()

setEventListener

public void setEventListener(PSKEventListener eventListener)

onLocationChangedEvent

public void onLocationChangedEvent(Location location)
Specified by:
onLocationChangedEvent in interface PSKEventListener

onDeviceOrientationChanged

public void onDeviceOrientationChanged(PSKDeviceOrientation newOrientation)
Specified by:
onDeviceOrientationChanged in interface PSKEventListener

startListening

public boolean startListening()

stopListening

public void stopListening()

setSimulatedLocation

protected void setSimulatedLocation(double latitude,
                                    double longitude,
                                    double altitude)
Manually sets a simulated location

Parameters:
latitude - Location latitude
longitude - Location longitude
altitude - Location altitude

clearSimulatedLocation

public void clearSimulatedLocation()
clear simulated location


getSensorListener

public PSKSensorManagerListener getSensorListener()

setSensorListener

public void setSensorListener(PSKSensorManagerListener sensorListener)

getLocationManager

public LocationManager getLocationManager()



Copyright © 2014 doPanic GmbH. All rights reserved.