Skip to content

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

GASmartAccessReaderCallbacks

[androidJvm]\ interface GASmartAccessReaderCallbacks

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
onACSInitialized [androidJvm]
abstract fun onACSInitialized(badgeID: Int?)
Callback triggered when ACS is initialized
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: AuthState)
Callback triggered when there's a change in the authentication state.
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.
onScannedSARUpdate [androidJvm]
abstract fun onScannedSARUpdate(device: SARDevice)
Callback triggered when a SAR is scanned
onScanStateUpdate [androidJvm]
abstract fun onScanStateUpdate(isScanning: Boolean)
Called when scan state is updated