IBaseLockConnectionListener

Interface definition for a listener to be notified of general lock connection events and messages. Implementations of this interface can be used to receive callbacks when indication messages are received, notifications are received, errors occur during lock communication, or when the lock requires a factory reset.

Inheritors

Functions

Link copied to clipboard
abstract fun onError(throwable: Throwable)

Called when an error occurs during the lock communication. E.g. when the lock requires a factory reset DeviceNeedsResetError will be thrown.

Link copied to clipboard
abstract fun onNotification(message: ByteArray)

Called when a notification is received from the lock.