com.starmicronics.stario
Interface StarProxiPRNTManagerCallback


public interface StarProxiPRNTManagerCallback


Nested Class Summary
static class StarProxiPRNTManagerCallback.StarDeviceType
           
 
Method Summary
 void onClosestCashDrawerFound(java.lang.String portName)
          Callback reporting an closest cash drawer device during a device scan initiated by the startScan function
 void onClosestPrinterFound(java.lang.String portName)
          Callback reporting an closest printer device during a device scan initiated by the startScan function.
 void onPortDiscovered(java.lang.String portName, StarProxiPRNTManagerCallback.StarDeviceType starDeviceType, java.lang.String macAddress, int rssi)
          Callback reporting an RSSI value of specified device changed during a device scan initiated by the startScan function.
 void onStateUpdated(java.lang.String portName, java.lang.String macAddress)
          Callback reporting an device that could not be get the rssi value five seconds or more during a device scan initiated by the startScan function.
 

Method Detail

onPortDiscovered

void onPortDiscovered(java.lang.String portName,
                      StarProxiPRNTManagerCallback.StarDeviceType starDeviceType,
                      java.lang.String macAddress,
                      int rssi)
Callback reporting an RSSI value of specified device changed during a device scan initiated by the startScan function.

Parameters:
portName - port name which is currently getting rssi
starDeviceType - device type which is currently getting rssi
macAddress - Mac address of the BLED10-U.
rssi - currently getting rssi

onStateUpdated

void onStateUpdated(java.lang.String portName,
                    java.lang.String macAddress)
Callback reporting an device that could not be get the rssi value five seconds or more during a device scan initiated by the startScan function.

Parameters:
portName - A port name of target device
macAddress - A macAddress of target BLED10-U device

onClosestPrinterFound

void onClosestPrinterFound(java.lang.String portName)
Callback reporting an closest printer device during a device scan initiated by the startScan function.

Parameters:
portName - A port name of current closest printer device

onClosestCashDrawerFound

void onClosestCashDrawerFound(java.lang.String portName)
Callback reporting an closest cash drawer device during a device scan initiated by the startScan function

Parameters:
portName - A port name of current closest cash drawer device