PropertyViewModel

open class PropertyViewModel(coreApi: CoreApi, coroutineDispatcherProvider: CoroutineDispatcherProvider) : ViewModel

Constructors

Link copied to clipboard
constructor(coreApi: CoreApi, coroutineDispatcherProvider: CoroutineDispatcherProvider)

Types

Link copied to clipboard
sealed class PropertyUiState

Properties

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

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
Link copied to clipboard
fun getPropertyById(propertyId: Int, onResult: (Property?) -> Unit)
Link copied to clipboard
Link copied to clipboard
fun initPropertyList(mapApi: MapApi, hasLocPermission: Boolean, hasPositioningPermissions: Boolean)
Link copied to clipboard
fun isMultiBuildingProperty(coreApi: CoreApi?, propertyId: Int): Boolean
Link copied to clipboard
open fun startPropertyDownload(context: Context, propertyId: Int, listener: PropertyDownloadManager.Listener)
Link copied to clipboard
open fun stopPropertyDownload(propertyId: Int)
Link copied to clipboard
fun updateCountryCode(countryCode: String)
Link copied to clipboard
fun updateDownloadProgress(propertyId: Int, status: DownloadStatus, progress: Int)