DiscoveryMapViewModel

class DiscoveryMapViewModel(@Assisted sessionId: Long, discoveryRepository: DiscoveryRepository) : ViewModel(source)

Constructors

Link copied to clipboard
constructor(@Assisted sessionId: Long, discoveryRepository: DiscoveryRepository)

Types

Link copied to clipboard
@AssistedFactory
fun interface Factory : ManualViewModelAssistedFactory

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