MediaPipeTasksText Framework Reference

MPPLanguageDetectorResult


@interface MPPLanguageDetectorResult : MPPTaskResult

Represents the results generated by LanguageDetector. *

  • A list of language predictions.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<MPPLanguagePrediction *> *_Nonnull languagePredictions;
  • Initializes a new LanguageDetectorResult with the given array of language predictions and timestamp (in milliseconds).

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithLanguagePredictions:
            (nonnull NSArray<MPPLanguagePrediction *> *)languagePredictions
            timestampInMilliseconds:(NSInteger)timestampInMilliseconds;

    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).

  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithTimestampInMilliseconds:(NSInteger)timestampInMilliseconds NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    + (instancetype)new NS_UNAVAILABLE;