onSessionWasInterrupted property

VoidCallback? onSessionWasInterrupted
getter/setter pair

This is called when a session is interrupted. A session will be interrupted and no longer able to track when it fails to receive required sensor data. This happens when video capture is interrupted, for example when the application is sent to the background or when there are multiple foreground applications (see AVCaptureSessionInterruptionReason). No additional frame updates will be delivered until the interruption has ended.

Implementation

VoidCallback? onSessionWasInterrupted;