public static interface KontaktDeviceConnection.ConnectionListener
Modifier and Type | Method and Description |
---|---|
void |
onAuthenticationFailure(int failureCode)
Called when the authorization password sent to beacon is incorrect.
|
void |
onAuthenticationSuccess(RemoteBluetoothDevice.Characteristics characteristics)
Called when Beacon device was successfully authenticated and returned
requested characteristics
(
RemoteBluetoothDevice.Characteristics ) |
void |
onCharacteristicsUpdated(RemoteBluetoothDevice.Characteristics characteristics)
Called when Beacon any characteristic was succesfully changed.
|
void |
onConnectionOpened()
Called when Android Device established connection with beacon.
|
void |
onDisconnected()
Called when Android device is disconnected from remote device.
|
void |
onErrorOccured(int errorCode)
Called when unexpected error occured during interacting with Beacon device.
|
void onConnectionOpened()
void onAuthenticationSuccess(RemoteBluetoothDevice.Characteristics characteristics)
RemoteBluetoothDevice.Characteristics
)characteristics
- beacon characteristicsvoid onAuthenticationFailure(int failureCode)
failureCode
- the failure code indicating what caused authentication
failure.void onCharacteristicsUpdated(RemoteBluetoothDevice.Characteristics characteristics)
characteristics
- the characteristicsvoid onErrorOccured(int errorCode)
errorCode
- the error codevoid onDisconnected()