Skip to content

//kotlin-sdk/fr.gasmartbuilding.gasmartaccessreadersdk/GASmartAccessReaderDemoCallback

GASmartAccessReaderDemoCallback

[androidJvm]\ interface GASmartAccessReaderDemoCallback

Interface for providing callbacks from GASmartAccessReaderDemo SDK to the main application. It allows to know the BLE state, display log messages on the app, and know if the peripheral is currently advertising.

Functions

Name Summary
onBadgeIDUpdated [androidJvm]
abstract fun onBadgeIDUpdated(badgeID: Int)
Callback triggered when there's an update to the badge ID.
onBLEStateChanged [androidJvm]
abstract fun onBLEStateChanged(state: Int)
Callback triggered when the peripheral manager updates its state.
onLockAuthenticationRequest [androidJvm]
abstract fun onLockAuthenticationRequest(callback: (isSuccess: Boolean) -> Unit)
Callback triggered when the SDK needs authentification.
onLockAuthStateUpdated [androidJvm]
abstract fun onLockAuthStateUpdated(authState: Boolean?)
Callback triggered when there's a change in the authentication state.
onLockConnectionUpdated [androidJvm]
abstract fun onLockConnectionUpdated(isConnected: Boolean)
Callback triggered when there's a change in the lock authentication status.
onLockError [androidJvm]
abstract fun onLockError(errorKey: ErrorKey)
Callback triggered when there's an error.
onLockReconStateChanged [androidJvm]
abstract fun onLockReconStateChanged(isStarted: Boolean)
Callback triggered to indicate if the peripheral manager has started or stopped.
onLogUpdated [androidJvm]
abstract fun onLogUpdated(message: String)
Callback for logger. It allows to display log messages in the app.