Meshtastic App
Toggle table of contents
androidJvm
Platform filter
androidJvm
Switch theme
Search in API
Meshtastic App
Meshtastic App
/
com.geeksville.mesh.service
/
ServiceRepository
Service
Repository
@
Singleton
class
ServiceRepository
@
Inject
constructor
:
Logging
Repository class for managing the IMeshService instance and connection state
Members
Constructors
Service
Repository
Link copied to clipboard
@
Inject
constructor
(
)
Properties
client
Notification
Link copied to clipboard
val
clientNotification
:
StateFlow
<
<Error class: unknown class>
?
>
connection
State
Link copied to clipboard
val
connectionState
:
StateFlow
<
ConnectionState
>
error
Message
Link copied to clipboard
val
errorMessage
:
StateFlow
<
String
?
>
mesh
Packet
Flow
Link copied to clipboard
val
meshPacketFlow
:
SharedFlow
<
<Error class: unknown class>
>
mesh
Service
Link copied to clipboard
var
meshService
:
<Error class: unknown class>
?
service
Action
Link copied to clipboard
val
serviceAction
:
Flow
<
ServiceAction
>
status
Message
Link copied to clipboard
val
statusMessage
:
StateFlow
<
String
?
>
traceroute
Response
Link copied to clipboard
val
tracerouteResponse
:
StateFlow
<
String
?
>
Functions
clear
Client
Notification
Link copied to clipboard
fun
clearClientNotification
(
)
clear
Error
Message
Link copied to clipboard
fun
clearErrorMessage
(
)
clear
Traceroute
Response
Link copied to clipboard
fun
clearTracerouteResponse
(
)
emit
Mesh
Packet
Link copied to clipboard
suspend
fun
emitMeshPacket
(
packet
:
<Error class: unknown class>
)
on
Service
Action
Link copied to clipboard
suspend
fun
onServiceAction
(
action
:
ServiceAction
)
set
Client
Notification
Link copied to clipboard
fun
setClientNotification
(
notification
:
<Error class: unknown class>
?
)
set
Connection
State
Link copied to clipboard
fun
setConnectionState
(
connectionState
:
ConnectionState
)
set
Error
Message
Link copied to clipboard
fun
setErrorMessage
(
text
:
String
)
set
Mesh
Service
Link copied to clipboard
fun
setMeshService
(
service
:
<Error class: unknown class>
?
)
set
Status
Message
Link copied to clipboard
fun
setStatusMessage
(
text
:
String
)
set
Traceroute
Response
Link copied to clipboard
fun
setTracerouteResponse
(
value
:
String
?
)