com.stollmann.terminalIO
Interface TIOManagerCallback


public interface TIOManagerCallback

The TIOManager's event listener implements the TIOManagerCallback interface in order to monitor system Bluetooth availability and to manage information about TIOPeripheral objects.


Method Summary
 void tioManagerDidDiscoverPeripheral(TIOPeripheral peripheral)
          Invoked when a TerminalIO peripheral has been newly discovered.
 void tioManagerDidUpdatePeripheral(TIOPeripheral peripheral)
          Invoked when an update of a TerminalIO peripheral's advertisement has been detected.
 

Method Detail

tioManagerDidDiscoverPeripheral

void tioManagerDidDiscoverPeripheral(TIOPeripheral peripheral)
Invoked when a TerminalIO peripheral has been newly discovered. This method is invoked when a TerminalIO peripheral currently not contained within the TIOManager peripherals list has been discovered during a scan procedure, i.e. after having called the TIOManager method TIOManager.startScan(). The peripheral will then be added to the TIOManager peripherals list, and this method will not be invoked again for this specific peripheral. If a known peripheral with an updated advertisement is detected, the tioManagerDidUpdatePeripheral() method will be invoked.

Parameters:
manager - The TIOManager singleton instance.
peripheral - A TIOPeripheral instance representing the discovered TerminalIO peripheral.

tioManagerDidUpdatePeripheral

void tioManagerDidUpdatePeripheral(TIOPeripheral peripheral)
Invoked when an update of a TerminalIO peripheral's advertisement has been detected. This method is invoked when a known TerminalIO peripheral with a changed advertisement is discovered after having started a new scan procedure by calling TIOManager.startScan().

Parameters:
manager - The TIOManager singleton instance.
peripheral - A TIOPeripheral instance representing the TerminalIO peripheral having updated its advertisement.