MetricsViewModel

class MetricsViewModel @Inject constructor(savedStateHandle: SavedStateHandle, app: Application, dispatchers: CoroutineDispatchers, meshLogRepository: MeshLogRepository, radioConfigRepository: RadioConfigRepository, deviceHardwareRepository: DeviceHardwareRepository, firmwareReleaseRepository: FirmwareReleaseRepository, mapPrefs: MapPrefs) : ViewModel, Logging

Constructors

Link copied to clipboard
@Inject
constructor(savedStateHandle: SavedStateHandle, app: Application, dispatchers: CoroutineDispatchers, meshLogRepository: MeshLogRepository, radioConfigRepository: RadioConfigRepository, deviceHardwareRepository: DeviceHardwareRepository, firmwareReleaseRepository: FirmwareReleaseRepository, mapPrefs: MapPrefs)

Properties

Link copied to clipboard
Link copied to clipboard
val state: StateFlow<MetricsState>
Link copied to clipboard
val tileSource: <Error class: unknown class>
Link copied to clipboard
val timeFrame: StateFlow<TimeFrame>

Functions

Link copied to clipboard
fun clearPosition(): Job
Link copied to clipboard
fun deleteLog(uuid: String): Job
Link copied to clipboard
fun getUser(nodeNum: Int): <Error class: unknown class>
Link copied to clipboard
fun onServiceAction(action: ServiceAction): Job
Link copied to clipboard
fun savePositionCSV(uri: Uri): Job

Write the persisted Position data out to a CSV file in the specified location.

Link copied to clipboard
fun setTimeFrame(timeFrame: TimeFrame)