Meshtastic App
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Meshtastic App
feature-firmware
/
org.meshtastic.feature.firmware.game
/
ChirpyHopViewModel
Chirpy
Hop
View
Model
class
ChirpyHopViewModel
(
uiPrefs
:
UiPrefs
)
:
ViewModel
(
source
)
Backs
ChirpyHopScreen
, keeping the best score in
UiPrefs
.
Members
Constructors
Chirpy
Hop
View
Model
Link copied to clipboard
constructor
(
uiPrefs
:
UiPrefs
)
Properties
best
Score
Link copied to clipboard
val
bestScore
:
StateFlow
<
Int
>
Functions
add
Closeable
Link copied to clipboard
expect
open
fun
addCloseable
(
closeable
:
AutoCloseable
)
expect
fun
addCloseable
(
key
:
String
,
closeable
:
AutoCloseable
)
get
Closeable
Link copied to clipboard
expect
fun
<
T
:
AutoCloseable
>
getCloseable
(
key
:
String
)
:
T
?
record
Score
Link copied to clipboard
fun
recordScore
(
score
:
Int
)