<!--
{
  "availability" : [
    "macOS: 10.4.0 - 10.15.0"
  ],
  "documentType" : "symbol",
  "framework" : "ImageCaptureCore",
  "identifier" : "/documentation/ImageCaptureCore/ICDeviceDelegate/deviceDidChangeSharingState(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ImageCaptureCore"
    ],
    "preciseIdentifier" : "c:objc(pl)ICDeviceDelegate(im)deviceDidChangeSharingState:"
  },
  "title" : "deviceDidChangeSharingState(_:)"
}
-->

# deviceDidChangeSharingState(_:)

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

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

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)