MetricsViewModel

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

Constructors

Link copied to clipboard
@Inject
constructor(savedStateHandle: SavedStateHandle, app: Application, dispatchers: CoroutineDispatchers, meshLogRepository: MeshLogRepository, radioConfigRepository: RadioConfigRepository, serviceRepository: ServiceRepository, nodeRepository: NodeRepository, 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: ITileSource
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): MeshProtos.User
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)