feat: add BleStatus enum and BleCallbacks interface
This commit is contained in:
parent
cd89604c9b
commit
61c5c1de32
1 changed files with 21 additions and 0 deletions
21
android/app/src/main/java/com/eddy/atomrelay/BleStatus.kt
Normal file
21
android/app/src/main/java/com/eddy/atomrelay/BleStatus.kt
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
package com.eddy.atomrelay
|
||||
|
||||
enum class BleStatus {
|
||||
Scanning,
|
||||
Connecting,
|
||||
Connected,
|
||||
Disconnected,
|
||||
NoKey,
|
||||
WrongDevice,
|
||||
ServiceNotFound,
|
||||
ServiceError,
|
||||
CommError,
|
||||
DeviceNotFound,
|
||||
BluetoothDisabled,
|
||||
PermissionsDenied
|
||||
}
|
||||
|
||||
interface BleCallbacks {
|
||||
fun onStatusChanged(status: BleStatus)
|
||||
}
|
||||
Loading…
Reference in a new issue