DefaultDirectoryObjectViewModel
constructor(directoryObject: DirectoryObject, onShowEntrances: (List<EntranceInfo>) -> Unit? = null, onHeaderHeightChanged: (Dp) -> Unit? = null, onMinimize: () -> Unit? = null, onMaximize: () -> Unit? = null, onClose: () -> Unit? = null, lastLocation: GeoPoint?)
Parameters
directoryObject
The source directory object containing all raw data.
onShowEntrances
Optional callback triggered when user requests to view detailed entrance information.
onHeaderHeightChanged
Optional callback function triggered when the height of the header component changes.
onMinimize
Optional callback triggered when the user requests to collapse the detail view.
onMaximize
Optional callback triggered when the user requests to expand the detail view.
onClose
Optional callback triggered when user requests to close/dismiss the detail view. Used for closing bottom sheets/dialogs.
lastLocation
The user's last known geo-coordinates, used for: - Calculating and formatting distance to the object - Determining relative location context If null, distance-related properties will be null/unavailable.