LanguageDetectorResult
class LanguageDetectorResult: TaskResult, NSCopyingRepresents the results generated by LanguageDetector. *
-
Initializes a new
LanguageDetectorResultwith the given array of language predictions and timestamp (in milliseconds).Declaration
Swift
init(languagePredictions: [LanguagePrediction], timestampInMilliseconds: Int)Parameters
languagePredictionThe array of language predictions in this result.
timestampInMillisecondsThe timestamp (in milliseconds) for this result.
Return Value
An instance of
LanguageDetectorResultinitialized with the given array of language predictions and timestamp (in milliseconds). -
A list of language predictions.
Declaration
Swift
var languagePredictions: [LanguagePrediction] { get }