---
title: wasDisconnectedNotification
framework: avfoundation
role: symbol
role_heading: Type Property
path: avfoundation/avcapturedevice/wasdisconnectednotification
---

# wasDisconnectedNotification

A notification the system posts when an existing device becomes unavailable.

## Declaration

```swift
class let wasDisconnectedNotification: NSNotification.Name
```

## Discussion

Discussion The notification’s object property contains the capture device that disconnected.

## See Also

### Finding and monitoring devices

- [AVCaptureDevice.DiscoverySession](avfoundation/avcapturedevice/discoverysession.md)
- [default(_:for:position:)](avfoundation/avcapturedevice/default(_:for:position:).md)
- [default(for:)](avfoundation/avcapturedevice/default(for:).md)
- [init(uniqueID:)](avfoundation/avcapturedevice/init(uniqueid:).md)
- [wasConnectedNotification](avfoundation/avcapturedevice/wasconnectednotification.md)
- [devices(for:)](avfoundation/avcapturedevice/devices(for:).md)
- [devices()](avfoundation/avcapturedevice/devices().md)
