---
title: "overlayView(_:shouldBeginAt:forAnalysisType:)"
framework: visionkit
role: symbol
role_heading: Instance Method
path: "visionkit/imageanalysisoverlayviewdelegate/overlayview(_:shouldbeginat:foranalysistype:)"
---

# overlayView(_:shouldBeginAt:forAnalysisType:)

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

## Declaration

```swift
@MainActor func overlayView(_ overlayView: ImageAnalysisOverlayView, shouldBeginAt point: CGPoint, forAnalysisType analysisType: ImageAnalysisOverlayView.InteractionTypes) -> Bool
```

## Parameters

- `overlayView`: The overlay view for which interaction can begin.
- `point`: The point where the interaction can begin.
- `analysisType`: The type of interaction that can begin.

## Return Value

Return Value true if the interaction can begin; otherwise, false.

## Discussion

Discussion The system calls this method once for each type of interaction. The default value is true, which starts the interaction immediately after the image displays.
