DiscoveryMapViewModel

class DiscoveryMapViewModel(sessionId: Long, discoveryDao: DiscoveryDao) : ViewModel(source)

Constructors

Link copied to clipboard
constructor(sessionId: Long, discoveryDao: DiscoveryDao)

Properties

Link copied to clipboard
Link copied to clipboard

Filtered and deduplicated nodes based on the current preset filter.

Link copied to clipboard
val mapStats: StateFlow<DiscoveryMapStats>

Map statistics: how many nodes have valid GPS coordinates vs total.

Link copied to clipboard
Link copied to clipboard
val selectedPresetFilter: StateFlow<Long?>
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
expect open fun addCloseable(closeable: AutoCloseable)
expect fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
expect fun <T : AutoCloseable> getCloseable(key: String): T?
Link copied to clipboard
fun selectPresetFilter(presetResultId: Long?)
Link copied to clipboard