IAddLockConnectionListener

Interface definition for a listener to be notified of add lock connection events. Implementations of this interface can be used to receive callbacks when the add lock connection status changes, which is typically used when adding a new lock to an account.

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.

Link copied to clipboard
abstract fun onUnsecureConnectionChanged(isConnecting: Boolean, isConnected: Boolean)

Called when the add lock connection status to the lock changes.