One Logo Pool Ball
DataDetection · IOS API REFERENCE

DataDetector.Options

struct · iOS 26.0+ · SDK 27.1

struct Options

A set of options that can be used to refine the behavior of text scanning, and better interpret the semantic of the matches. These properties are only hints, no assumption should be made about how the will be used. Set `documentDate` to the creation date of the scanned string. (e.g. Text message reception date). Default is now. Set `documentTimeZone` to the time zone matching the documentDate. Default is the current user time zone. Set `documentLanguageCode` to the language code of the scanned string. Example: "en". *Only set this if it is already known with high confidence*. If guessing is required, it should be left to nil. Set `documentRegion` to the region relevant to the scanned string, if any. *Only set this if it is already known with high confidence*. If guessing is required, it should be left to nil.

Members (9)

get · iOS 26.0+

documentDate

TypeScript
get documentDate(): (globalThis.Date) | null
Swift declaration
var documentDate: Date?
set · iOS 26.0+

documentDate

TypeScript
set documentDate(value: (globalThis.Date) | null)
Swift declaration
var documentDate: Date?
get · iOS 26.0+

documentRegion

TypeScript
get documentRegion(): (_Foundation_Locale_Region) | null
Swift declaration
var documentRegion: Locale.Region?
set · iOS 26.0+

documentRegion

TypeScript
set documentRegion(value: (_Foundation_Locale_Region) | null)
Swift declaration
var documentRegion: Locale.Region?
get · iOS 26.0+

documentTimeZone

TypeScript
get documentTimeZone(): (_Foundation_TimeZone) | null
Swift declaration
var documentTimeZone: TimeZone?
set · iOS 26.0+

documentTimeZone

TypeScript
set documentTimeZone(value: (_Foundation_TimeZone) | null)
Swift declaration
var documentTimeZone: TimeZone?
get · iOS 26.0+

documentLanguageCode

TypeScript
get documentLanguageCode(): (_Foundation_Locale_LanguageCode) | null
Swift declaration
var documentLanguageCode: Locale.LanguageCode?
set · iOS 26.0+

documentLanguageCode

TypeScript
set documentLanguageCode(value: (_Foundation_Locale_LanguageCode) | null)
Swift declaration
var documentLanguageCode: Locale.LanguageCode?
init · iOS 26.0+

init

TypeScript
static init(): DataDetector_Options
Swift declaration
init()

Skipped declarations

No declarations were skipped in this snapshot.

All DataDetection types →