<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ImageCaptureCore",
  "identifier" : "/documentation/ImageCaptureCore/ICDeviceDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "ImageCaptureCore"
    ],
    "preciseIdentifier" : "c:objc(pl)ICDeviceDelegate"
  },
  "title" : "ICDeviceDelegate"
}
-->

# ICDeviceDelegate

Methods for responding to device events and changes.

```
protocol ICDeviceDelegate : NSObjectProtocol
```

## Overview

Unless otherwise noted, all completion blocks execute on the calling thread.

## Topics

### Responding to Device Events

[`-  device:didOpenSessionWithError:`](/documentation/ImageCaptureCore/ICDeviceDelegate/device(_:didOpenSessionWithError:))

Tells the delegate when a session is opened on a device.

[`-  device:didCloseSessionWithError:`](/documentation/ImageCaptureCore/ICDeviceDelegate/device(_:didCloseSessionWithError:))

Tells the delegate when a session is closed on a device.

[`-  didRemoveDevice:`](/documentation/ImageCaptureCore/ICDeviceDelegate/didRemove(_:))

Tells the delegate that a device has been removed.

[`-  deviceDidBecomeReady:`](/documentation/ImageCaptureCore/ICDeviceDelegate/deviceDidBecomeReady(_:))

Tells the delegate when the device is ready to receive requests.

[`-  device:didReceiveStatusInformation:`](/documentation/ImageCaptureCore/ICDeviceDelegate/device(_:didReceiveStatusInformation:))

Tells the delegate when status information is received from a device.

[`-  device:didEncounterError:`](/documentation/ImageCaptureCore/ICDeviceDelegate/device(_:didEncounterError:))

Tells the delegate when a device encounters an error.

[`-  device:didEjectWithError:`](/documentation/ImageCaptureCore/ICDeviceDelegate/device(_:didEjectWithError:))

Tells the delegate when the ejection is complete.

### Responding to Device Changes

[`-  deviceDidChangeName:`](/documentation/ImageCaptureCore/ICDeviceDelegate/deviceDidChangeName(_:))

Tells the delegate when the name of a device changes.

[`-  deviceDidChangeSharingState:`](/documentation/ImageCaptureCore/ICDeviceDelegate/deviceDidChangeSharingState(_:))

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

## Relationships

### Inherited By

[`ICScannerDeviceDelegate`](/documentation/ImageCaptureCore/ICScannerDeviceDelegate)

[`ICCameraDeviceDelegate`](/documentation/ImageCaptureCore/ICCameraDeviceDelegate)

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

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)