Class SessionEventArgs
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.SessionEventArgs
-
- Direct Known Subclasses:
ConnectionEventArgs,ConversationExpirationEventArgs,ConversationParticipantsChangedEventArgs,RecognitionEventArgs,TranslationSynthesisEventArgs
public class SessionEventArgs extends Object
Defines payload for SessionStarted/Stopped events.
-
-
Field Summary
Fields Modifier and Type Field Description protected SafeHandleeventHandleInternal member variable that holds the native event handle.
-
Constructor Summary
Constructors Constructor Description SessionEventArgs(long eventArgs)Internal constructor for a SessionEventArgs object.SessionEventArgs(long eventArgs, boolean dispose)Internal constructor for a SessionEventArgs object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclose()Explicitly frees any external resource attached to the objectStringgetSessionId()Represents the session identifier.StringtoString()Returns a String that represents the session event.
-
-
-
Field Detail
-
eventHandle
protected SafeHandle eventHandle
Internal member variable that holds the native event handle.
-
-
Constructor Detail
-
SessionEventArgs
public SessionEventArgs(long eventArgs)
Internal constructor for a SessionEventArgs object.- Parameters:
eventArgs- The native handle for SessionEventArgs
-
SessionEventArgs
public SessionEventArgs(long eventArgs, boolean dispose)Internal constructor for a SessionEventArgs object.- Parameters:
eventArgs- the native handle for SessionEventArgsdispose- the flag to dispose the resources under the native handle
-
-
Method Detail
-
getSessionId
public String getSessionId()
Represents the session identifier.- Returns:
- Represents the session identifier.
-
toString
public String toString()
Returns a String that represents the session event.
-
close
protected void close()
Explicitly frees any external resource attached to the object
-
-