DataDetector.Options
A set of options you can use to refine the behavior of text scanning, and better interpret the semantic domain of the matches.
Declaration
struct OptionsOverview
These properties are only hints, so it’s best to not make assumptions about how the framework uses them:
Set
documentDateto the creation date of the scanned string, such as a text message reception date. The default is now.Set
documentTimeZoneto the time zone matching thedocumentDate. The default is a person’s current time zone.Set
documentLanguageCodeto the language code of the scanned string, for example, “en” for English. Only set this property if you know the target language with a high degree of confidence; otherwise, set tonil.Set
documentRegionto the region relevant to the scanned string, if any. Only set this property if you know the region with a high degree of confidence; otherwise, set tonil.