TTMSFNCCloudTranslation.Detect Method
Detects the source language of a single text value. The request runs asynchronously; the result is delivered through the callback and the detect event.
API unit family: TMSFNCCloudTranslation
Declaring type: TTMSFNCCloudTranslation
Inherited from: TTMSFNCCustomCloudTranslation
Syntax
procedure Detect(AText: string; ACallback: TTMSFNCCloudTranslationDetectCallback = nil); overload; virtual;
Remarks
Requires a valid APIKey; otherwise an exception is raised.
Parameters
| Name | Description |
|---|---|
AText |
Text to analyze. Multiple values may be passed separated by a semicolon. |
ACallback |
Optional callback invoked when the request completes. |