RoomioScanState
The state of a RoomioScanSession, read from state.
enum RoomioScanState
RoomioScanState.cancelled
The user exited the scan, or you called cancel(). Nothing was saved; call close() and dismiss the scanning screen.
case cancelled
RoomioScanState.failed(_:)
The scan failed with the given error.
case failed(RoomioError)
RoomioScanState.finished
Recording has finished. Call export() to get the result.
case finished
RoomioScanState.idle
Not recording yet.
case idle
RoomioScanState.paused
Paused, either by pause() or because the app went to the background. Nothing is recorded.
case paused
RoomioScanState.recovering
Tracking was lost and the scan is recovering.
case recovering
RoomioScanState.saving
Recording has stopped and the scan is being saved. Moves to RoomioScanState.finished, or RoomioScanState.failed(_:) if saving fails.
case saving
RoomioScanState.scanning(_:)
Recording, with the current tracking quality.
case scanning(RoomioTrackingQuality)
RoomioScanState.starting
The camera is starting up.
case starting