CancellationDetails Class

Definition

Contains detailed information about why a result was canceled.

public class CancellationDetails
Inheritance
java.lang.Object
CancellationDetails

Methods

close()

Explicitly frees any external resource attached to the object

fromResult(RecognitionResult result)

Creates an instance of CancellationDetails object for the canceled RecognitionResult.

getErrorCode()

The error code in case of an unsuccessful recognition (when getReason() returns Error). Added in version 1.1.0.

getErrorDetails()

The error message in case of an unsuccessful recognition (when getReason() returns Error).

getReason()

The reason the recognition was canceled.

toString()

Returns a String that represents the cancellation details.

Applies to