# LanguageDetectorResult

    class LanguageDetectorResult: TaskResult, NSCopying

Represents the results generated by `LanguageDetector`. \*
- `
  ### [init(languagePredictions:timestampInMilliseconds:)](https://developers.google.com/edge/api/mediapipe/swift/text/Classes/LanguageDetectorResult.md.txt#/c:objc(cs)MPPLanguageDetectorResult(im)initWithLanguagePredictions:timestampInMilliseconds:)

  ` Initializes a new `LanguageDetectorResult` with the given array of language predictions and timestamp (in milliseconds).

  #### Declaration

  Swift

      init(languagePredictions: [LanguagePrediction], timestampInMilliseconds: Int)

  #### Parameters

  |---|---|
  | `languagePrediction` | The array of language predictions in this result. |
  | `timestampInMilliseconds` | The timestamp (in milliseconds) for this result. |

  #### Return Value

  An instance of `LanguageDetectorResult` initialized with the given array of language predictions and timestamp (in milliseconds).
- `
  ### [languagePredictions](https://developers.google.com/edge/api/mediapipe/swift/text/Classes/LanguageDetectorResult.md.txt#/c:objc(cs)MPPLanguageDetectorResult(py)languagePredictions)

  ` A list of language predictions.

  #### Declaration

  Swift

      var languagePredictions: [LanguagePrediction] { get }