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.FileError
if file creation fails.Declaration
Swift
public static func create( navigation: TomTomNavigation, directoryURL: URL? = nil, fileName: String? = nil ) throws -> LocationTracesRecorder
Parameters
navigation
The
Navigation
object for which the traces will be recorded.directoryURL
The URL of the device directory to which new files will be saved. If value is not set, then
Documents
folder is used by default.fileName
The 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
LocationTracesRecorder
functionality.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum FileError : Error