toggle menu
Kotlin-BLE-Library
androidJvm
switch theme
search in API
app_server
/
no.nordicsemi.android.kotlin.ble.server
/
ServerViewModel
Server
View
Model
class
ServerViewModel
@
Inject
constructor
(
context
:
Context
)
:
ViewModel
Members
Constructors
Server
View
Model
Link copied to clipboard
@
Inject
constructor
(
context
:
Context
)
Properties
state
Link copied to clipboard
val
state
:
StateFlow
<
ServerState
>
Functions
add
Closeable
Link copied to clipboard
open
fun
addCloseable
(
closeable
:
AutoCloseable
)
fun
addCloseable
(
key
:
String
,
closeable
:
AutoCloseable
)
advertise
Link copied to clipboard
fun
advertise
(
)
get
Closeable
Link copied to clipboard
fun
<
T
:
AutoCloseable
>
getCloseable
(
key
:
String
)
:
T
?
on
Button
Pressed
Changed
Link copied to clipboard
fun
onButtonPressedChanged
(
isButtonPressed
:
Boolean
)
:
Job
stop
Advertise
Link copied to clipboard
fun
stopAdvertise
(
)