UsbReaderListener

interface UsbReaderListener : ReaderListener

Functions

Link copied to clipboard
open fun onBatteryLevelUpdate(batteryLevel: Float, batteryStatus: BatteryStatus, isCharging: Boolean)

The Terminal reports batteryLevel, BatteryStatus and charging status every 10 minutes

Link copied to clipboard
open fun onFinishInstallingUpdate(update: ReaderSoftwareUpdate?, e: TerminalException? = null)

The terminal has finished installing a ReaderSoftwareUpdate.

Link copied to clipboard
open fun onReportAvailableUpdate(update: ReaderSoftwareUpdate)

NOTE: An implementation of this method is required for bluetooth and usb readers.

Link copied to clipboard
open fun onReportLowBatteryWarning()

The Terminal reported that the reader's battery level is low

Link copied to clipboard
open fun onReportReaderEvent(event: ReaderEvent)

The Terminal reported an event from the reader (e.g. a card was inserted).

Link copied to clipboard
open fun onReportReaderSoftwareUpdateProgress(progress: Float)

The terminal reported progress on a reader software update.

Link copied to clipboard
open fun onRequestReaderDisplayMessage(message: ReaderDisplayMessage)

This method is called to request that a message be displayed in your app. For example, if the message is SWIPE_CARD, your app should instruct the user to present the card again by swiping it.

Link copied to clipboard
open fun onRequestReaderInput(options: ReaderInputOptions)

This method is called when the reader begins waiting for input. Your app should prompt the customer to present a source using one of the given input options. If the reader emits a message, the .onRequestReaderDisplayMessage method will be called.

Link copied to clipboard
open fun onStartInstallingUpdate(update: ReaderSoftwareUpdate, cancelable: Cancelable?)

The SDK is reporting that the reader has started installation of a required update that must be completed before the reader can be used.