SITIndoorLocationManager Class Reference

Inherits from NSObject
Declared in SITIndoorLocationManager.h

Overview

This class provide you with methods to of entry to the SitumSDK.

  state

Indoor Location Manager State

@property (nonatomic, readonly) SITIndoorLocationManagerStates state

Return Value

the current state of the indoor location manager

Declared In

SITIndoorLocationManager.h

  )

Object implementing SITIndoorLocationManagerDelegate Protocol

@property (nonatomic, weak) id<SITIndoorLocationManagerDelegate> delegate DEPRECATED_MSG_ATTRIBUTE ( "Use SITLocationManager delegate property instead" )

Declared In

SITIndoorLocationManager.h

+ sharedManager

Call this method to receive a reference to an initialized object of this class

+ (instancetype)sharedManager

Discussion

You should always use this method to obtain the manager object and should not try to create instances directly.

Declared In

SITIndoorLocationManager.h

– startReportingIndoorLocationForBuilding:toQueue:withOptions:withHandler:

Start reporting location

- (BOOL)startReportingIndoorLocationForBuilding:(SITIndoorBuilding *)building toQueue:(NSOperationQueue *)operationQueue withOptions:(NSDictionary *)options withHandler:(SITIndoorLocationHandler)indoorLocationHandler

Parameters

building

The building to which

operationQueue

The queue to which the handler will be executed

options

Dictionary containing options parameter that could modify how location works

indoorLocationHandler

Block of instructions to perform every time a new position is calculated

Return Value

A Boolean value meaning if the operation was performed successfully or not.

Discussion

As a developer you should expect a new location every second.

Declared In

SITIndoorLocationManager.h

– stopReportingIndoorLocation

This method stops reporting locations

- (BOOL)stopReportingIndoorLocation

Return Value

A Boolean value meaning if the operation was performed successfully or not.

Discussion

Calling this method when the shared manager is in inactive state will produce NO results

Declared In

SITIndoorLocationManager.h

– adjustLocationToRoute:

Tell the system to adjust following location updates to a particular route

- (BOOL)adjustLocationToRoute:(SITIndoorRoute *)route

Parameters

route

a SITIndoorRoute object

Return Value

BOOL value indicating if the operation has been successfull (YES) or not (NO)

Declared In

SITIndoorLocationManager.h

– stopAdjustingLocation

Tell the system to cancel adjusting location updates to a particular route

- (BOOL)stopAdjustingLocation

Return Value

BOOL value indicating if the operating has been successfull (YES) or not (NO).

Declared In

SITIndoorLocationManager.h

– isAdjustingLocation

Check if the system is adjusting locations to a particular route

- (BOOL)isAdjustingLocation

Return Value

BOOL value indicating if the location is being adjusted (YES) or not (NO)

Declared In

SITIndoorLocationManager.h