1.4.0
NOTES
- Full support of version 1.4 features requires version 138 or higher of the Pay Display app.
- This is the Swift 4 compatible version of this library.
- A Swift 2.3 compatible version of this library is available under the 1.4.0-swift2.3 release.
NEW
- Added a new Print API
- Please migrate all print requests to the new API using the
PrintRequest
object:print(request: PrintRequest)
- Printing via type-specific functions is deprecated and will be removed in a future release:
printText(lines: [String])
printImage(image: UIImage)
printImageFromURL(image: String)
- Added a new API to open cash drawers
- Please migrate all cash drawer requests to the new API using the
OpenCashDrawerRequest
object:openCashDrawer(request: OpenCashDrawerRequest)
- opening of cash drawers with a reason string is deprecated and will be removed in a future release:
openCashDrawer(reason: String)
- Please migrate all cash drawer requests to the new API using the
- Query available printers
retrievePrinters(request: RetrievePrintersRequest)
onRetrievePrintersResponse(retrievePrintersResponse: RetrievePrintersResponse)
- Query the status of a print job
retrievePrintJobStatus(request: PrintJobStatusRequest)
onPrintJobStatusResponse(printJobStatusResponse: PrintJobStatusResponse)
- Please migrate all print requests to the new API using the
- Added support for printing large images through message fragmenting
- Creation of an instance of the CloverConnector should now go through the
CloverConnectorFactory
(see example below) - Added support for Mac OS-based apps