<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VisionKit",
  "identifier" : "/documentation/VisionKit/ImageAnalysisInteractionDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "VisionKit"
    ],
    "preciseIdentifier" : "s:9VisionKit32ImageAnalysisInteractionDelegateP"
  },
  "title" : "ImageAnalysisInteractionDelegate"
}
-->

# ImageAnalysisInteractionDelegate

A delegate that handles image-analysis and user-interaction callbacks for an interaction object.

```
@MainActor protocol ImageAnalysisInteractionDelegate : AnyObject
```

## Overview

The delegate of an [`ImageAnalysisInteraction`](/documentation/VisionKit/ImageAnalysisInteraction) object implements this
protocol to provide interface details and to customize the response for a person’s interaction.

## Topics

### Providing interface details

[`contentView(for:)`](/documentation/VisionKit/ImageAnalysisInteractionDelegate/contentView(for:))

Provides the view that contains the image.

[`contentsRect(for:)`](/documentation/VisionKit/ImageAnalysisInteractionDelegate/contentsRect(for:))

Returns the rectangle, in unit coordinates, that contains the image within the view.

[`presentingViewController(for:)`](/documentation/VisionKit/ImageAnalysisInteractionDelegate/presentingViewController(for:))

Provides the view controller that presents the interface objects.

### Starting the interaction

[`interaction(_:shouldBeginAt:for:)`](/documentation/VisionKit/ImageAnalysisInteractionDelegate/interaction(_:shouldBeginAt:for:))

Provides a Boolean value that indicates whether the interaction can begin at the given point.

### Tracking interface changes

[`interaction(_:liveTextButtonDidChangeToVisible:)`](/documentation/VisionKit/ImageAnalysisInteractionDelegate/interaction(_:liveTextButtonDidChangeToVisible:))

Notifies your app when the Live Text button’s visibility changes.

[`interaction(_:highlightSelectedItemsDidChange:)`](/documentation/VisionKit/ImageAnalysisInteractionDelegate/interaction(_:highlightSelectedItemsDidChange:))

Notifies your app when recognized items in the image appear highlighted as a result of a person tapping the Live Text button.

[`textSelectionDidChange(_:)`](/documentation/VisionKit/ImageAnalysisInteractionDelegate/textSelectionDidChange(_:))

Notifies your app when the interaction’s text selection changes.



---

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)