Inherits from NSObject
Conforms to CLLocationManagerDelegate
Declared in PSKSensorManager.h

Overview

@class PSKSensorManager

Tasks

Other Methods

Simulator Methods

Properties

allowWifiOnlyPositioning

by default PanicAR requires GPS to run set this to @ref YES to enable Wifi only positioning

@property (nonatomic, assign) BOOL allowWifiOnlyPositioning

Discussion

by default PanicAR requires GPS to run set this to @ref YES to enable Wifi only positioning

Declared In

PSKSensorManager.h

delegate

PSKSensorDelegate delegate object receiving updates from the PSKSensorManager

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

Discussion

PSKSensorDelegate delegate object receiving updates from the PSKSensorManager

Declared In

PSKSensorManager.h

deviceAttitude

PSKDeviceAttitude instance that reflects the sensor output from the device

@property (nonatomic, strong, readonly) 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

@property (nonatomic, strong, readonly) PSKDeviceProperties *deviceProperties

Discussion

PSKDeviceProperties reflecting the properties of the currently active device

Declared In

PSKSensorManager.h

didResumeEvent

block that is run before manager will suspend

@property (nonatomic, copy, readonly) PSKVoidBlock didResumeEvent

Discussion

block that is run before manager will suspend

Declared In

PSKSensorManager.h

fakeLocation

the fake location to use

@property (nonatomic, strong) CLLocation *fakeLocation

Discussion

the fake location to use

Declared In

PSKSensorManager.h

freezeLocationAndHeading

freeze the motion data as is

@property (nonatomic, assign) BOOL freezeLocationAndHeading

Discussion

freeze the motion data as is

Declared In

PSKSensorManager.h

freezeMotion

freeze the motion data as is

@property (nonatomic, assign) BOOL freezeMotion

Discussion

freeze the motion data as is

Declared In

PSKSensorManager.h

locationManager

CLLocationManager instance

@property (nonatomic, strong, readonly) CLLocationManager *locationManager

Discussion

CLLocationManager instance

Declared In

PSKSensorManager.h

motionManager

CMMotionManager instance

@property (nonatomic, strong, readonly) CMMotionManager *motionManager

Discussion

CMMotionManager instance

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

numberOfLocationUpdates

number of location updates

@property (nonatomic, assign, readonly) int numberOfLocationUpdates

Discussion

number of location updates

Declared In

PSKSensorManager.h

respectOrientationForHeading

@property if YES then @ref CLLocationManager setHeadingOrientation is called when the device orientation changes

@property (nonatomic, assign) BOOL respectOrientationForHeading

Discussion

@property if YES then @ref CLLocationManager setHeadingOrientation is called when the device orientation changes

Declared In

PSKSensorManager.h

sensorUpdateMode

set the components for which updates should be performed see @ref PSKSensorManagerUpdateMode

@property (nonatomic, assign) PSKSensorManagerUpdateMode sensorUpdateMode

Discussion

@property sensorUpdateMode

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, getter=shouldUpdateHeading, setter=setShouldUpdateHeading:) 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, getter=shouldUpdateLocation, setter=setShouldUpdateLocation:) 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, getter=shouldUpdateMotion, setter=setShouldUpdateMotion:) 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

status

status - reflects the sensor availability

@property (nonatomic, assign, readonly) PSKSensorManagerStatus status

Discussion

status - reflects the sensor availability

Declared In

PSKSensorManager.h

useFakeLocation

use the fake location

@property (nonatomic, assign) BOOL useFakeLocation

Discussion

use the fake location

Declared In

PSKSensorManager.h

willSuspendEvent

block that is run when manager resumed

@property (nonatomic, copy, readonly) PSKVoidBlock willSuspendEvent

Discussion

block that is run when manager resumed

Declared In

PSKSensorManager.h

Class Methods

bearingTowardsLocation:to:

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

Declared In

PSKSensorManager.h

sharedSensorManager

shared sensor manager instance

+ (PSKSensorManager *)sharedSensorManager

Discussion

shared sensor manager instance

Declared In

PSKSensorManager.h

showDefaultErrorMessage:

show default error message dialogs

+ (void)showDefaultErrorMessage:(int)forErrorCode

Parameters

forErrorCode

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

Declared In

PSKSensorManager.h

Instance Methods

checkAndEnsureLocationAuthorization

check the localization Authorization and on iOS 8 request it when it’s not available

- (CLAuthorizationStatus)checkAndEnsureLocationAuthorization

Return Value

check the localization Authorization and on iOS 8 request it when it’s not available

Declared In

PSKSensorManager.h

clearDeviceProperties

isCompassCalibrationEnabled

isUpdatingHeading

isUpdatingLocation

isUpdatingMotion

locationAuthorizationStatus

wrapped call to [CLLocationManager authorizationStatus]

- (CLAuthorizationStatus)locationAuthorizationStatus

Return Value

wrapped call to [CLLocationManager authorizationStatus]

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

setDidResumeEvent:

setUseCompassAsBaseline:

shortcut method to set @ref motionReferenceFrame will use CMAttitudeReferenceFrameXArbitraryCorrectedZVertical if NO, CMAttitudeReferenceFrameXTrueNorthZVertical if YES

- (void)setUseCompassAsBaseline:(BOOL)useCompass

Discussion

shortcut method to set @ref motionReferenceFrame will use CMAttitudeReferenceFrameXArbitraryCorrectedZVertical if NO, CMAttitudeReferenceFrameXTrueNorthZVertical if YES

Declared In

PSKSensorManager.h

setWillSuspendEvent:

start

starts the sensor update with custom settings

- (BOOL)start

Return Value

YES if all routines could be started successfully, NO if an error occured, check @ref status in that case to get details on the error

Discussion

starts the sensor update with custom settings

Declared In

PSKSensorManager.h

startForLocationBasedPoiAR

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

- (BOOL)startForLocationBasedPoiAR

Discussion

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

Declared In

PSKSensorManager.h

stop

stops the sensor update

- (void)stop

Discussion

stops the sensor update

Declared In

PSKSensorManager.h