Navmii SDK  2.2.0
Write yourself a navigation system in iOS
Instance Methods | Class Methods | Properties | List of all members
NMTrackRecorder Class Reference

Inherits <NSObject>.

Instance Methods

(nullable instancetype) - NS_UNAVAILABLE
 
(void) - start
 
(void) - stop
 
(void) - saveCurrentTrack
 

Class Methods

(nullable instancetype) + NS_UNAVAILABLE
 

Properties

BOOL recording
 
NSString * directoryPath
 

Detailed Description

A class providing an API allowing to record GPS track files.

Method Documentation

◆ NS_UNAVAILABLE() [1/2]

- (nullable instancetype) NS_UNAVAILABLE

Default initialization is forbidden.

◆ NS_UNAVAILABLE() [2/2]

+ (nullable instancetype) NS_UNAVAILABLE

◆ saveCurrentTrack()

- (void) saveCurrentTrack

Saves current track to a file. Starts recording a new track.

◆ start()

- (void) start

Starts recording GPS locations.

◆ stop()

- (void) stop

Stops recording GPS locations and saves current track to a file.

Property Documentation

◆ directoryPath

- (NSString*) directoryPath
readwritenonatomicstrong

Allows to get/set a directory path, which should be used to save tracks. By default tracks are being stored in Documents/NavmiiTracks/ directory of the application.

◆ recording

- (BOOL) recording
readnonatomicassign

Returns YES if track recorder is currently recording.