SectorPageViewModelImpl

Constructors

Link copied to clipboard

Types

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open fun <T : Application> getApplication(): T
Link copied to clipboard
open override fun loadBarChartData(sector: Sector)

Loads the BarChartData of sector into loadBarChartData.

Link copied to clipboard
open override fun loadPaths(sector: Sector)

Loads the list of Path contained in sector.

Link copied to clipboard
open override fun loadZone(objectId: String)

Loads the zone at objectId.

Properties

Link copied to clipboard
open override var barChartData: BarChartData

A Mutable state delegation of BarChartData with the data to display.

Link copied to clipboard
open override var blockStatusList: List<BlockingData>

A mutable state delegation of a list of BlockingData of the paths.

Link copied to clipboard
open override var dataClass: DataClass<*, *, *>?
Link copied to clipboard
open override var paths: List<Path>

A Mutable State delegation of a list of paths with the paths to display.

Extensions

Link copied to clipboard
Link copied to clipboard

Returns the application's context attached to the view model.

Link copied to clipboard
suspend fun <T> AndroidViewModel.get(key: Preferences.Key<T>, default: T): T

Gets the last value stored at key, or returns default if there are no stored values.

Link copied to clipboard
fun <T> AndroidViewModel.set(key: Preferences.Key<T>, value: T): Job

Updates the value at key with value using the scope of the view model.