---
title: "deviceDidChangeSharingState(_:)"
framework: imagecapturecore
role: symbol
role_heading: Instance Method
path: "imagecapturecore/icdevicedelegate/devicedidchangesharingstate(_:)"
---

# deviceDidChangeSharingState(_:)

Tells the delegate when the sharing state of a device changes.

## Declaration

```swift
optional func deviceDidChangeSharingState(_ device: ICDevice)
```

## Discussion

Discussion Any Image Capture client application can choose to share the device over the network using the sharing or webSharing facility in Image Capture. Execution of the delegate callback occurs on the main thread.

## See Also

### Responding to Device Changes

- [deviceDidChangeName(_:)](imagecapturecore/icdevicedelegate/devicedidchangename(_:).md)
