MLKitTextRecognitionCommon Framework Reference

  • TextRecognizedLanguage objects store the detected language from text recognition.

  • The languageCode property provides the language code in ISO 639-1 (two-letter), ISO 639-2 (three-letter), or a Google-specific code.

  • Initializing TextRecognizedLanguage directly is not allowed.

TextRecognizedLanguage

class TextRecognizedLanguage : NSObject

Detected language from text recognition.

  • The ISO 639-1 two-letter language code if that is defined (e.g. “en”), or else the ISO 639-2 three-letter code if that is defined, or else a Google-specific code.

    Declaration

    Swift

    var languageCode: String? { get }
  • Unavailable.