Skip to main content
Table of Contents

TTMSFNCCustomCloudTranslation.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: TTMSFNCCustomCloudTranslation

Syntax

FMX.TMSFNCCloudTranslation.hppPascalC++
procedure Detect(AText: string; ACallback: TTMSFNCCloudTranslationDetectCallback = nil); overload; virtual;
virtual void __fastcall Detect(System::UnicodeString AText, _di_TTMSFNCCloudTranslationDetectCallback ACallback = _di_TTMSFNCCloudTranslationDetectCallback())/* overload */;

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.