LocationTracesRecorderFactory
public enum LocationTracesRecorderFactory
Creates implementations of LocationTracesRecorder API.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Factory method for creating an instance of
LocationTracesRecorder.Throws
ALocationTracesRecorderFactory.FileErrorif file creation fails.Declaration
Swift
public static func create( navigation: TomTomNavigation, directoryURL: URL? = nil, fileName: String? = nil ) throws -> LocationTracesRecorderParameters
navigationThe
Navigationobject for which the traces will be recorded.directoryURLThe URL of the device directory to which new files will be saved. If value is not set, then
Documentsfolder is used by default.fileNameThe custom log file name to which logs will be saved. If the value is not set, the file is named using the yyyy-MM-dd HH.mm.ss pattern.
Return Value
Instance of
LocationTracesRecorder.
-
Represents errors related to
LocationTracesRecorderfunctionality.See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum FileError : Error
TomTom SDK for iOS (0.53.1)
LocationTracesRecorderFactory