MapFilterState

data class MapFilterState(val onlyFavorites: Boolean, val showWaypoints: Boolean, val showPrecisionCircle: Boolean, val lastHeardFilter: LastHeardFilter, val lastHeardTrackFilter: LastHeardFilter, val excludedRoles: Set<Config.DeviceConfig.Role> = emptySet(), val onlyOnline: Boolean = false, val onlyDirect: Boolean = false, val onlySigned: Boolean = false, val onlyEncrypted: Boolean = false, val excludeMqtt: Boolean = false, val showIgnored: Boolean = false, val includeUnknown: Boolean = true)(source)

Everything the map's filter sheet controls.

The node-level filters mirror the node list's, down to reusing its string resources, so the same words mean the same thing on both screens. showIgnored is the one deliberate divergence — see MapNodePolicy.

Constructors

Link copied to clipboard
constructor(onlyFavorites: Boolean, showWaypoints: Boolean, showPrecisionCircle: Boolean, lastHeardFilter: LastHeardFilter, lastHeardTrackFilter: LastHeardFilter, excludedRoles: Set<Config.DeviceConfig.Role> = emptySet(), onlyOnline: Boolean = false, onlyDirect: Boolean = false, onlySigned: Boolean = false, onlyEncrypted: Boolean = false, excludeMqtt: Boolean = false, showIgnored: Boolean = false, includeUnknown: Boolean = true)

Properties

Link copied to clipboard
val excludedRoles: Set<Config.DeviceConfig.Role>

Roles the user has switched off. Excluded rather than included so a role added by future firmware shows.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

True when anything here is narrowing the node set, so the filter button can show it.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Show only nodes a public key is on file for.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Show only nodes whose signed broadcasts the radio has verified (design#149).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard