חומר עזר בנושא MLKitTextRecognitionCommon Framework
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
TextRecognizedLanguage
class TextRecognizedLanguage : NSObject
זוהתה שפה מזיהוי טקסט.
-
קוד שפה בן שתי אותיות לפי תקן ISO 639-1, אם הוגדר (למשל, en) או תקן ISO 639-2.
קוד בן שלוש אותיות אם הוא מוגדר, או קוד ספציפי ל-Google.
הצהרה
Swift
var languageCode: String? { get }
-
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[[["\u003cp\u003e\u003ccode\u003eTextRecognizedLanguage\u003c/code\u003e objects store the detected language from text recognition.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003elanguageCode\u003c/code\u003e property provides the language code in ISO 639-1 (two-letter), ISO 639-2 (three-letter), or a Google-specific code.\u003c/p\u003e\n"],["\u003cp\u003eInitializing \u003ccode\u003eTextRecognizedLanguage\u003c/code\u003e directly is not allowed.\u003c/p\u003e\n"]]],["The `TextRecognizedLanguage` class detects the language from text recognition. It provides a read-only property, `languageCode`, which returns the detected language's code as a string. The code follows ISO 639-1 (two-letter), ISO 639-2 (three-letter), or a Google-specific code if no ISO code is available. The initializer `init` is unavailable for this class.\n"],null,["# MLKitTextRecognitionCommon Framework Reference\n\nTextRecognizedLanguage\n======================\n\n class TextRecognizedLanguage : NSObject\n\nDetected language from text recognition.\n- `\n ``\n ``\n `\n\n ### [languageCode](#/c:objc(cs)MLKTextRecognizedLanguage(py)languageCode)\n\n `\n ` \n The ISO 639-1 two-letter language code if that is defined (e.g. \"en\"), or else the ISO 639-2\n three-letter code if that is defined, or else a Google-specific code. \n\n #### Declaration\n\n Swift \n\n var languageCode: String? { get }\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)MLKTextRecognizedLanguage(im)init)\n\n `\n ` \n Unavailable."]]