DataExporter
protocol DataExporter
Protocol used to define a data exporter object.
-
Initiate a data export process for a file format.
Declaration
Swift
func export(format: FileFormat, range: (Date, Date), completion: (Result<URL, Error>) -> Void)
Parameters
format
The file format to be used for the output.
range
The range of dates for the data query.
completion
The completion closure with a Result type of
URL
andError
. -
Initiate a data export process for a file format.
Declaration
Swift
func export(format: FileFormat, from beginDate: Date, to endDate: Date, completion: (Result<URL, Error>) -> Void)
Parameters
format
The file format to be used for the output.
beginData
The inital date for the data query.
endData
The end date for the data query.
completion
The completion closure with a Result type of
URL
andError
.