PrinterDiscoveryListener

PrinterDiscoveryListener is implemented by a user in a UI class to catch when new printers are discovered. The class that implements PrinterDiscoveryListener can also start and stop printer discovery.

printerDiscovered(discoveredPrinterInformation: DiscoveredPrinterInformation)

printerDiscovered triggers when a user implements this interface into their front end and a printer is discovered.

  • discoveredPrinterInformation: the printer information that is discovered.

printerRemoved(discoveredPrinterInformation: DiscoveredPrinterInformation)

printerRemoved triggers when a BLE printer has not been seen for 10 seconds. This method only applies to Bluetooth Low Energy scans.

  • discoveredPrinterInformation: the printer information that is discovered.

printerDiscoveryStarted()

printerDiscoveryStarted triggers when a discovery scan is started in the SDK's code.

printerDiscoveryStopped()

printerDiscoveryStopped triggers when a discovery scan is stopped in the SDK's code.nterDiscoveryStopped is where the user can call stopPrinterDiscovery() to stop a discovery scan.