Class RecognitionEventArgs

    • Field Detail

      • offset

        public BigInteger offset
        Represents the message offset in 100nsec increments.
    • Constructor Detail

      • RecognitionEventArgs

        public RecognitionEventArgs​(long eventArgs)
        Constructs an instance of a RecognitionEventArgs object.
        Parameters:
        eventArgs - recognition event args object.
      • RecognitionEventArgs

        public RecognitionEventArgs​(long eventArgs,
                                    boolean dispose)
        Constructs an instance of a RecognitionEventArgs object.
        Parameters:
        eventArgs - recognition event args object.
        dispose - should the args be disposed when done?
    • Method Detail

      • toString

        public String toString()
        Returns a String that represents the recognition event payload.
        Overrides:
        toString in class SessionEventArgs
        Returns:
        A String that represents the recognition event payload.
      • getRecognitionResult

        protected final long getRecognitionResult​(SafeHandle eventHandle,
                                                  IntRef resultHandle)
        Native JNI call to get the native handle to recognition result.
        Parameters:
        eventHandle - The event handle.
        resultHandle - The result handle.
        Returns:
        The native handle to recognition result.