contentView
Swift declaration@MainActor func contentView(for interaction: ImageAnalysisInteraction) -> UIView?A default implementation that provides the interaction's view. - Returns: The interaction's view.
protocol · iOS 16.0+ · SDK 27.1
@MainActor protocol ImageAnalysisInteractionDelegate : AnyObjectA delegate that handles image-analysis and user-interaction callbacks for an interaction object. The delegate of an ``ImageAnalysisInteraction`` object implements this protocol to provide interface details and to customize the response for a person's interaction.
@MainActor func contentView(for interaction: ImageAnalysisInteraction) -> UIView?A default implementation that provides the interaction's view. - Returns: The interaction's view.
@MainActor func interaction(_ interaction: ImageAnalysisInteraction, shouldBeginAt point: CGPoint, for interactionType: ImageAnalysisInteraction.InteractionTypes) -> BoolA default implementation that indicates that the interaction begins. - Returns: This default implementation returns `true`.
@MainActor func interaction(_ interaction: ImageAnalysisInteraction, highlightSelectedItemsDidChange highlightSelectedItems: Bool)A default, blank implementation for when recognized items in the image appear highlighted as a result of a person tapping the Live Text button.
@MainActor func interaction(_ interaction: ImageAnalysisInteraction, liveTextButtonDidChangeToVisible visible: Bool)A default, blank implementation for when the Live Text button appears or disappears.
@MainActor func contentsRect(for interaction: ImageAnalysisInteraction) -> CGRectA default unit rectangle that represents the full size of the interaction view. - Returns: A unit rectangle with origin `(0, 0)` and the same width and height as the interaction view.
@MainActor func textSelectionDidChange(_ interaction: ImageAnalysisInteraction)A default, blank implementation for when the text selection changes.
@MainActor func presentingViewController(for interaction: ImageAnalysisInteraction) -> UIViewController?A default implementation that provides the interaction view's root view controller. - Returns: The interaction view's root view controller.
No declarations were skipped in this snapshot.