Monitor device connection status
During a transaction, the person using the POS should be kept informed of the overall status of the Clover device. The ICloverConnectorListener
provides two methods—onDeviceActivityStart
and onDeviceActivityEnd
—that allow you to update the status as the payment flow proceeds. In addition, you can use these messages to take action on the customer's behalf if needed. For more information about these listener methods, see Working with UI state messages.
IMPORTANT
UI state messages are not guaranteed to appear in a specific order, in a specific number, or even appear at all. Custom flows or business logic should not be designed in response to any UI state.
Disconnections and errors
The onDeviceDisconnected
and onDeviceError
handlers should be implemented. At a minimum, the POS application should log these conditions. The messages can also be used to notify the POS user of the disconnection or error state and allow them to resolve the issue.
Updated 12 months ago