PROTOCOL
AppDelegate
public protocol AppDelegate: 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 Update - Parameter didBadgeIDIsUpdated: String
Parameters
Name | Description |
---|---|
didBadgeIDIsUpdated | String |
onLockAuthStateUpdated(_:)
func onLockAuthStateUpdated(_ isSuccess: Bool?)
Delegate for Auth State Status update - Parameter isSuccess: Bool
Parameters
Name | Description |
---|---|
isSuccess | Bool |
onLockAuthenticationRequest(_:)
func onLockAuthenticationRequest(_ callback: (_ 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 |
onLockConnectionUpdated(_:)
func onLockConnectionUpdated(_ isConnected: Bool)
Delegate for Central connection state - Parameter isConnected: Bool
Parameters
Name | Description |
---|---|
isConnected | Bool |
onLockError(_:)
func onLockError(_ errorKey: ErrorKey)
Delegate for Errors - Parameter ErrorKey: ErrorKey
Parameters
Name | Description |
---|---|
ErrorKey | ErrorKey |