LanguageDetectorResult
class LanguageDetectorResult: TaskResult, NSCopyingRepresents the results generated by LanguageDetector. *
-
Declaration
Swift
convenience init(languagePredictions: [LanguagePrediction], timestampInMilliseconds: Int) -
Initializes a new
LanguageDetectorResultwith the given array of language predictions and timestamp (in milliseconds).Declaration
Swift
init(languages: [LanguagePrediction], timestampInMilliseconds: Int)Parameters
languagesThe 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). -
Declaration
Swift
var languagePredictions: [LanguagePrediction] { get } -
A list of language predictions.
Declaration
Swift
var languages: [LanguagePrediction] { get }