Package ej.bluetooth.listeners.impl
Class DefaultConnectionListener
- java.lang.Object
-
- ej.bluetooth.listeners.impl.DefaultConnectionListener
-
- All Implemented Interfaces:
ConnectionListener
public class DefaultConnectionListener extends java.lang.Object implements ConnectionListener
-
-
Constructor Summary
Constructors Constructor Description DefaultConnectionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonAdvertisementCompleted()voidonConnected(BluetoothConnection connection)voidonConnectFailed(BluetoothAddress address)voidonDisconnected(BluetoothConnection connection)voidonDiscoveryCompleted(BluetoothConnection connection)voidonDiscoveryResult(BluetoothConnection connection, BluetoothService service)voidonPairCompleted(BluetoothConnection connection, boolean success)voidonPairRequest(BluetoothConnection connection)voidonPasskeyGenerated(BluetoothConnection connection, int passkey)voidonPasskeyRequest(BluetoothConnection connection)voidonScanCompleted()voidonScanResult(BluetoothAddress address, byte[] advertisementData, int rssi)
-
-
-
Method Detail
-
onAdvertisementCompleted
public void onAdvertisementCompleted()
- Specified by:
onAdvertisementCompletedin interfaceConnectionListener
-
onScanCompleted
public void onScanCompleted()
- Specified by:
onScanCompletedin interfaceConnectionListener
-
onScanResult
public void onScanResult(BluetoothAddress address, byte[] advertisementData, int rssi)
- Specified by:
onScanResultin interfaceConnectionListener
-
onConnectFailed
public void onConnectFailed(BluetoothAddress address)
- Specified by:
onConnectFailedin interfaceConnectionListener
-
onConnected
public void onConnected(BluetoothConnection connection)
- Specified by:
onConnectedin interfaceConnectionListener
-
onDisconnected
public void onDisconnected(BluetoothConnection connection)
- Specified by:
onDisconnectedin interfaceConnectionListener
-
onPairRequest
public void onPairRequest(BluetoothConnection connection)
- Specified by:
onPairRequestin interfaceConnectionListener
-
onPairCompleted
public void onPairCompleted(BluetoothConnection connection, boolean success)
- Specified by:
onPairCompletedin interfaceConnectionListener
-
onPasskeyRequest
public void onPasskeyRequest(BluetoothConnection connection)
- Specified by:
onPasskeyRequestin interfaceConnectionListener
-
onPasskeyGenerated
public void onPasskeyGenerated(BluetoothConnection connection, int passkey)
- Specified by:
onPasskeyGeneratedin interfaceConnectionListener
-
onDiscoveryResult
public void onDiscoveryResult(BluetoothConnection connection, BluetoothService service)
- Specified by:
onDiscoveryResultin interfaceConnectionListener
-
onDiscoveryCompleted
public void onDiscoveryCompleted(BluetoothConnection connection)
- Specified by:
onDiscoveryCompletedin interfaceConnectionListener
-
-