One Logo Pool Ball
VisionKit · IOS API REFERENCE

ImageAnalyzer.AnalysisTypes

struct · iOS 16.0+ · SDK 27.1

struct AnalysisTypes

The types of items that an image analyzer looks for in an image.

Members (6)

get · iOS 16.0+

visualLookUp

TypeScript
get visualLookUp(): ImageAnalyzer_AnalysisTypes
Swift declaration
static let visualLookUp: ImageAnalyzer.AnalysisTypes

An option that analyzes an image for subjects that the framework can look up for more information. When the framework recognizes a particular type of subject in an image, it offers an interface for people to learn more about the subject. For example, if an image contains a rose, the framework recognizes a plant and enables people to tap the plant which presents a sheet with a list of additional resources on the specific type of plant — in this case, a rose. For more information about subjects in images, see ``ImageAnalysisInteraction/Subject``.

get · iOS 16.0+

machineReadableCode

TypeScript
get machineReadableCode(): ImageAnalyzer_AnalysisTypes
Swift declaration
static let machineReadableCode: ImageAnalyzer.AnalysisTypes

An option that analyzes an image for machine-readable codes, such as QR codes. The framework recognizes the following code types: Aztec, Codebar, Code 39 Checksum, Code 39, Code 39 Full ASCII, Code 39 Full ASCII Checksum, Code 93, Code 93, Code 128, Matrix EAN-8, Data, EAN-13, GS1 DataBar Expanded, GS1 DataBar Limited, ITF, ITF-14, MicroPDF417, MicroQR, PDF417 QR, UPC-E - Important: The framework ignores this option on macOS.

get · iOS 16.0+

text

TypeScript
get text(): ImageAnalyzer_AnalysisTypes
Swift declaration
static let text: ImageAnalyzer.AnalysisTypes

An option that analyzes an image for text.

init · iOS 16.0+

init

TypeScript
init(rawValue: number): ImageAnalyzer_AnalysisTypes
Swift declaration
init(rawValue: UInt)

Creates an analysis type with the given value. - Parameter rawValue: The underlying value of the analysis type.

get · iOS 16.0+

rawValue

TypeScript
getRawValue($self: ImageAnalyzer_AnalysisTypes): number
Swift declaration
var rawValue: UInt

A unique, underlying value for the analysis type.

set · iOS 16.0+

rawValue

TypeScript
setRawValue($self: ImageAnalyzer_AnalysisTypes, value: number): void
Swift declaration
var rawValue: UInt

A unique, underlying value for the analysis type.

Skipped declarations

No declarations were skipped in this snapshot.

All VisionKit types →