MPPLanguageDetectorResult
@interface MPPLanguageDetectorResult : MPPTaskResultRepresents the results generated by LanguageDetector. *
-
A list of language predictions.
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<MPPLanguagePrediction *> *_Nonnull languagePredictions; -
Initializes a new
LanguageDetectorResultwith the given array of language predictions and timestamp (in milliseconds).Declaration
Objective-C
- (nonnull instancetype) initWithLanguagePredictions: (nonnull NSArray<MPPLanguagePrediction *> *)languagePredictions timestampInMilliseconds:(NSInteger)timestampInMilliseconds;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). -
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;