Meshtastic App
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Meshtastic App
core-testing
/
org.meshtastic.core.testing
/
FakeBluetoothRepository
Fake
Bluetooth
Repository
class
FakeBluetoothRepository
:
BaseFake
,
BluetoothRepository
(
source
)
Members
Constructors
Fake
Bluetooth
Repository
Link copied to clipboard
constructor
(
)
Properties
state
Link copied to clipboard
open
override
val
state
:
StateFlow
<
BluetoothState
>
Functions
bond
Link copied to clipboard
open
suspend override
fun
bond
(
device
:
BleDevice
)
is
Bonded
Link copied to clipboard
open
override
fun
isBonded
(
address
:
String
)
:
Boolean
is
Valid
Link copied to clipboard
open
override
fun
isValid
(
bleAddress
:
String
)
:
Boolean
refresh
State
Link copied to clipboard
open
override
fun
refreshState
(
)
reset
Link copied to clipboard
open
fun
reset
(
)
Resets all registered state flows and custom actions to their initial state.
set
Bluetooth
Enabled
Link copied to clipboard
fun
setBluetoothEnabled
(
enabled
:
Boolean
)
set
Has
Permissions
Link copied to clipboard
fun
setHasPermissions
(
hasPermissions
:
Boolean
)