Transport View Model
ViewModel for managing transport-related logic and data.
This ViewModel is annotated with HiltViewModel for Dagger-Hilt integration.
Constructors
Functions
Initiates the process of deleting the active transport, including deleting associated images.
Deletes the image associated with the specified UUID from the transport state.
Initiates the process of finishing the transport and updates the UI state accordingly.
Checks if the entered cargo number is valid and saves the cargo information if valid.
Checks if the entered driver name and license plate are valid and performs the necessary actions.
Checks if the entered route number is valid and performs the necessary actions.
Checks if the entered transport details are valid and performs the necessary actions.
Handles the process after taking a photo with the camera, and updates the transport state with the captured image.
Toggles the state of various dialogs based on the provided DialogToggleEvent.
Updates the TransportUiState based on the provided TransportChangeEvent.
Initiates the process of scanning a cargo number using the device's camera.
Initiates the process of scanning a route number using the device's camera.