Inherits from NSObject
Conforms to CLLocationManagerDelegate
Declared in PSKSensorManager.h

Overview

PSKSensorManager singleton class to handle all sensor input and act as an abstraction layer between doPanic Frameworks and OS sensor output

Tasks

Properties

delegate

PSKSensorDelegate delegate object receiving updates from the PSKSensorManager

@property (nonatomic, assign) id<PSKSensorDelegate> delegate

Discussion

PSKSensorDelegate delegate object receiving updates from the PSKSensorManager

Declared In

PSKSensorManager.h

motionRefrenceFrame

@property set the CMAttitudeReferenceFrame that should be used for the motion update @remarks only change this if you know what your doing and when you want to use @ref start instead of @ref startForLocationBasedPoiAR

@property (nonatomic, assign) CMAttitudeReferenceFrame motionRefrenceFrame

Discussion

@property set the CMAttitudeReferenceFrame that should be used for the motion update @remarks only change this if you know what your doing and when you want to use @ref start instead of @ref startForLocationBasedPoiAR

Declared In

PSKSensorManager.h

shouldUpdateHeading

@property YES if heading should be updated @remarks only change this if you know what your doing and when you want to use @ref start instead of @ref startForLocationBasedPoiAR

@property (nonatomic, assign) BOOL shouldUpdateHeading

Discussion

@property YES if heading should be updated @remarks only change this if you know what your doing and when you want to use @ref start instead of @ref startForLocationBasedPoiAR

Declared In

PSKSensorManager.h

shouldUpdateLocation

@property YES if location should be updated @remarks only change this if you know what your doing and when you want to use @ref start instead of @ref startForLocationBasedPoiAR

@property (nonatomic, assign) BOOL shouldUpdateLocation

Discussion

@property YES if location should be updated @remarks only change this if you know what your doing and when you want to use @ref start instead of @ref startForLocationBasedPoiAR

Declared In

PSKSensorManager.h

shouldUpdateMotion

@property YES if heading should be updated @remarks only change this if you know what your doing and when you want to use @ref start instead of @ref startForLocationBasedPoiAR

@property (nonatomic, assign) BOOL shouldUpdateMotion

Discussion

@property YES if heading should be updated @remarks only change this if you know what your doing and when you want to use @ref start instead of @ref startForLocationBasedPoiAR

Declared In

PSKSensorManager.h

Class Methods

bearingTowardsLocation:to:

@brief calculates the direction towards a location, heads-up line is the north pole at 0 degrees @remarks does not take into account the earth’s curve and therefore will grow more inaccurate the farther the locations are apart

+ (double)bearingTowardsLocation:(CLLocation *)fromLocation to:(CLLocation *)towardsLocation

Parameters

fromLocation

location of center point

towardsLocation

location of look-at point

Discussion

@brief calculates the direction towards a location, heads-up line is the north pole at 0 degrees @remarks does not take into account the earth’s curve and therefore will grow more inaccurate the farther the locations are apart

Declared In

PSKSensorManager.h

showDefaultErrorMessage:

@brief show default error message dialogs

+ (void)showDefaultErrorMessage:(int)forErrorCode

Parameters

forErrorCode

the error code for which a message needs to be displayed @remarks localizable

Discussion

@brief show default error message dialogs

Declared In

PSKSensorManager.h

Instance Methods

deviceAttitude

PSKDeviceAttitude instance that reflects the sensor output from the device

- (PSKDeviceAttitude *)deviceAttitude

Discussion

PSKDeviceAttitude instance that reflects the sensor output from the device

Declared In

PSKSensorManager.h

deviceProperties

PSKDeviceProperties reflecting the properties of the currently active device

- (PSKDeviceProperties *)deviceProperties

Discussion

PSKDeviceProperties reflecting the properties of the currently active device

Declared In

PSKSensorManager.h

locationManager

CLLocationManager instance

- (CLLocationManager *)locationManager

Discussion

CLLocationManager instance

Declared In

PSKSensorManager.h

motionManager

CMMotionManager instance

- (CMMotionManager *)motionManager

Discussion

CMMotionManager instance

Declared In

PSKSensorManager.h

motionUpdateIncludesHeading

YES if heading is update by the CMMotionManager

- (BOOL)motionUpdateIncludesHeading

Return Value

YES if heading is update by the CMMotionManager

Declared In

PSKSensorManager.h

sharedSensorManager

shared sensor manager instance

- (PSKSensorManager *)sharedSensorManager

Discussion

shared sensor manager instance

Declared In

PSKSensorManager.h

start

starts the sensor update with custom settings

- (void)start

Discussion

starts the sensor update with custom settings

Declared In

PSKSensorManager.h

startForLocationBasedPoiAR

starts the sensor update for a standard Location-based AR application

- (void)startForLocationBasedPoiAR

Discussion

starts the sensor update for a standard Location-based AR application

Declared In

PSKSensorManager.h

status

status – reflects the sensor availability

- (PSKSensorManagerStatus)status

Discussion

status – reflects the sensor availability

Declared In

PSKSensorManager.h

stop

stops the sensor update

- (void)stop

Discussion

stops the sensor update

Declared In

PSKSensorManager.h