SITRealtimeUploadManager Class Reference
Inherits from | NSObject |
---|---|
Declared in | SITRealtimeUploadManager.h |
Overview
This class is the main manager for uploading Realtime positions. It uses two different loggers to upload the realtime positions: Realtime Logger and Historic Logger. The first one runs a loop which executes an upload of the positions stored in the logger to the server with a fixed delay between uploads. The second one serves as storage when the internet connection is lost and uploads that positions when the connection is recovered.
+ sharedInstance
This constructor returns a shared instance of the Realtime Upload Manager.
+ (instancetype)sharedInstance
Return Value
Returns an initialized instance of the class.
Declared In
SITRealtimeUploadManager.h
– startWithUpdateInterval:
Starts the uploading process with an interval specified in the params.
- (void)startWithUpdateInterval:(SITRealtimeUpdateInterval)interval
Parameters
interval |
A value of SITRealtimeUpdateInterval that specifies the number of seconds between uploads. |
---|
Declared In
SITRealtimeUploadManager.h
– storeLocation:
Stores a new location to be uploaded to the realtime server.
- (void)storeLocation:(SITLocation *)locationToUpload
Parameters
locationToUpload |
A valid location object to be stored. |
---|
Declared In
SITRealtimeUploadManager.h