Contents

interaction(_:shouldBeginAt:for:)

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

Declaration

@MainActor func interaction(_ interaction: ImageAnalysisInteraction, shouldBeginAt point: CGPoint, for interactionType: ImageAnalysisInteraction.InteractionTypes) -> Bool

Parameters

  • interaction:

    The object for which interaction can begin.

  • point:

    The point where the interaction can begin.

  • interactionType:

    The type of interaction that can begin.

Return Value

true if the interaction can begin; otherwise, false.

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.