RoomioScanEvent
sealed interface RoomioScanEvent
A notification from a RoomioScanSession, delivered through RoomioScanSession.events.
Inheritors
Types
| Name | Summary |
|---|---|
| Failed | data class Failed(val error: RoomioError) : RoomioScanEvent An error occurred. Fatal errors also move RoomioScanSession.state to RoomioScanState.Failed. |
| GuidanceChanged | data class GuidanceChanged(val guidance: RoomioGuidance?) : RoomioScanEvent What the user should do to get a better scan. RoomioScanView already shows it; use this to adjust your own UI. Sent from the camera preview on, whenever the advice changes; guidance is null when there is nothing to tell the user, and the scan pausing or finishing clears it. |
| ProgressUpdated | data class ProgressUpdated(val progress: RoomioScanProgress) : RoomioScanEvent Scan progress, for showing progress in your own UI. Sent each time the distance travelled grows, in steps of at least 0.5 m. |
| TrackingChanged | data class TrackingChanged(val quality: RoomioTrackingQuality) : RoomioScanEvent The tracking quality changed. |