Skip to content

PROTOCOL

GASmartAccessReaderSDKDelegate

public protocol GASmartAccessReaderSDKDelegate: AnyObject

Methods

onBLEStateChanged(_:)

func onBLEStateChanged(_ state: CBManagerState)

Delegate for BLE Update State. It allows to know if BLE is ready to use. - Parameter state: BLE State

Parameters

Name Description
state BLE State

onLogUpdated(_:)

func onLogUpdated(_ message: String)

Delegate for logger. It allows to display log messages on the app. - Parameter message: Log message

Parameters

Name Description
message Log message

onLockReconStateChanged(_:)

func onLockReconStateChanged(_ isStarted: Bool)

Delegate for Peripheral Manager Update - Parameter isStarted: Bool

Parameters

Name Description
isStarted Bool

onBadgeIDUpdated(_:)

func onBadgeIDUpdated(_ badgeID: String)

Delegate for Badge ID Fetch Update - Parameter didBadgeIDIsUpdated: String

Parameters

Name Description
didBadgeIDIsUpdated String

onLockAuthStateUpdated(_:)

func onLockAuthStateUpdated(_ state: AuthState)

Delegate for Auth State Status update - Parameter isSuccess: Bool

Parameters

Name Description
isSuccess Bool

onLockAuthenticationRequest(_:)

func onLockAuthenticationRequest(_ callback: @escaping (_ isSuccess: Bool) -> Void)

Delegate with callback to ask App for authentication status - Parameter callback: callback with auth status

Parameters

Name Description
callback callback with auth status

onLockError(_:)

func onLockError(_ errorKey: ErrorKey)

Delegate for Errors - Parameter ErrorKey: ErrorKey

Parameters

Name Description
ErrorKey ErrorKey

onScannedSARUpdate(_:)

func onScannedSARUpdate(_ device: SARDevice)

Delegate for scanned SAR - Parameter Device: CBPeripheral

Parameters

Name Description
Device CBPeripheral

onScanStateUpdate(_:)

func onScanStateUpdate(_ isScanning: Bool)

Delegate for scanning state

onACSInitialized(_:)

func onACSInitialized(_ badgeID: String?)

Delegate called when ACS is initialized