transcript
TypeScriptget transcript(): stringSwift declarationvar transcript: String { get }The complete text as a string.
struct · iOS 26.0+ · SDK 27.1
struct TextA structure that represents a region of text in a document.
get transcript(): stringSwift declarationvar transcript: String { get }The complete text as a string.
get detectedData(): Array<DocumentObservation_Container_DataDetectorMatch>Swift declarationvar detectedData: [DocumentObservation.Container.DataDetectorMatch] { get }Detected content in the document matched to a specific type of data, such as emails, phone numbers, addresses, and so on. This is a computed property that may be computationally expensive for large text regions.
get textAlignment(): (DocumentObservation_Container_Text_Alignment) | nullSwift declarationvar textAlignment: DocumentObservation.Container.Text.Alignment? { get }The alignment of the text within its container.
boundingRegionFor(range: SDKHandle): (ContoursObservation_Contour) | nullSwift declarationfunc boundingRegion(for range: Range<String.Index>) -> NormalizedRegion?Calculates a bounding region around the range of characters within a string. - Parameters: - range: An interval for the amount of characters within the text string.
get boundingRegion(): ContoursObservation_ContourSwift declarationvar boundingRegion: NormalizedRegion { get }A polygon that defines the boundary of text. - Parameters: - boundingBox: The bounding box of the object.
get lines(): Array<RecognizedTextObservation>Swift declarationvar lines: [RecognizedTextObservation] { get }The text grouped by line.
get words(): (Array<RecognizedTextObservation>) | nullSwift declarationvar words: [RecognizedTextObservation]? { get }An instance property that returns individual words in a text container. Chinese, Japanese, Korean, and Thai don't recognize individual words.
No declarations were skipped in this snapshot.