> ## Documentation Index
> Fetch the complete documentation index at: https://docs.basset.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# session.state

> Whether a capture session is running, and whether iOS interrupted it

KVO on `AVCaptureSession.isRunning` and `.isInterrupted`. One reading each
time either changes.

| | |
| - | - |
| [Delivery](/instruments/metadata) | stream, onChange |
| Mechanism | kvo |
| [Requires](/instruments/metadata) | iOS 17+, hardware only, no simulator, basset 0.1.1+ |

Real output from `basset request get`, captured against a running
`AVCaptureSession`:

```
CAPTURED                  ELAPSED  INSTRUMENT

launch 9329595343462435326
2026-08-23T13:10:44.723Z  +0.0s    camera.session.state(captureSession)
├─ instanceId          1
├─ sessionRunning      false
└─ sessionInterrupted  false
2026-08-23T13:10:44.990Z  +0.3s    camera.session.state(captureSession)
├─ instanceId          1
├─ sessionRunning      true
└─ sessionInterrupted  false
2026-08-23T13:10:48.125Z  +3.4s    camera.session.state(captureSession)
├─ instanceId          1
├─ sessionRunning      false
└─ sessionInterrupted  false
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.