IServiceListener

interface IServiceListener

IServiceListener

Description :

An interface for notifying BluetoothProfile IPC clients when they have been connected or disconnected to the service.

Example of use :

  • Implementation :
    
     IServiceListener mServiceListener = new IServiceListener() {
    
    public void onServiceConnected(String address) {
    // code ...
    }
    }
    
  • Init this callback by calling :
    
    STWBLEManager.getInstance.setServiceListener(mServiceListener)
    

Functions

Link copied to clipboard
abstract fun onServiceConnected(@Nullable address: String)
Called to notify the client when the proxy object has been connected to the service.