Indicates whether the device is suspended.
SDK
- macOS 10.7+
Framework
- AVFoundation
Declaration
var isSuspended: Bool { get }
Discussion
Some devices disallow data capture due to a feature on the device.
For example, is
returns true
for an external iSight camera when its privacy iris is closed, or for the internal iSight camera on a notebook when the notebook’s display is closed.
You can observe changes to the value of this property using Key-value observing.