共用方式為


Class SPXTranslationRecognitionCanceledEventArgs

Declaration

@class SPXTranslationRecognitionCanceledEventArgs : SPXTranslationRecognitionEventArgs;

Description

Defines the payload of text translation canceled events.

Properties

reason

@property (readonly, atomic) SPXCancellationReason reason;

The reason why the text translation was canceled.

errorCode

@property (readonly, atomic) SPXCancellationErrorCode errorCode;

The error code in case of an unsuccessful recognition (reason is set to Error).

Added in version 1.1.0.

errorDetails

@property (readonly, copy, atomic) NSString * _Nullable errorDetails;

The error message in case of an unsuccessful recognition (reason is set to Error).