azure-docs-sdk-java/docs-ref-autogen/com.microsoft.cognitiveserv...

150 строки
6.7 KiB
YAML

### YamlMime:ManagedReference
items:
- uid: com.microsoft.cognitiveservices.speech.util._event_handler_impl
id: _event_handler_impl
parent: com.microsoft.cognitiveservices.speech.util
children:
- com.microsoft.cognitiveservices.speech.util._event_handler_impl.addEventListener(EventHandler<T>)
- com.microsoft.cognitiveservices.speech.util._event_handler_impl.fireEvent(Object,T)
- com.microsoft.cognitiveservices.speech.util._event_handler_impl.removeEventListener(EventHandler<T>)
href: com.microsoft.cognitiveservices.speech.util._event_handler_impl.yml
langs:
- java
name: EventHandlerImpl<T>
nameWithType: EventHandlerImpl<T>
fullName: com.microsoft.cognitiveservices.speech.util.EventHandlerImpl<T>
type: Class
source:
remote: &o0
path: source/bindings/java/com/microsoft/cognitiveservices/speech/util/EventHandlerImpl.java
branch: javadocs
repo: https://msasg.visualstudio.com/DefaultCollection/Skyman/_git/Carbon
path: source/bindings/java/com/microsoft/cognitiveservices/speech/util/EventHandlerImpl.java
startLine: 11
package: com.microsoft.cognitiveservices.speech.util
summary: <p>Implements the binding between the Speech SDK core event handler and Java event handling. </p>
syntax:
content: public class EventHandlerImpl<T>
typeParameters:
- id: T
type: 8ce1ecb9
inheritance:
- java.lang.Object
- uid: com.microsoft.cognitiveservices.speech.util._event_handler_impl.addEventListener(EventHandler<T>)
id: addEventListener(EventHandler<T>)
parent: com.microsoft.cognitiveservices.speech.util._event_handler_impl
href: com.microsoft.cognitiveservices.speech.util._event_handler_impl.yml
langs:
- java
name: addEventListener(EventHandler<T> handler)
nameWithType: EventHandlerImpl<T>.addEventListener(EventHandler<T> handler)
fullName: com.microsoft.cognitiveservices.speech.util.EventHandlerImpl<T>.addEventListener(EventHandler<T> handler)
overload: com.microsoft.cognitiveservices.speech.util._event_handler_impl.addEventListener*
type: Method
source:
remote: *o0
path: source/bindings/java/com/microsoft/cognitiveservices/speech/util/EventHandlerImpl.java
startLine: 16
package: com.microsoft.cognitiveservices.speech.util
summary: <p>Registers a new event handler with the associated event. </p>
syntax:
content: public void addEventListener(EventHandler<T> handler)
parameters:
- id: handler
type: com.microsoft.cognitiveservices.speech.util._event_handler669339f7
description: <p>The handler. </p>
- uid: com.microsoft.cognitiveservices.speech.util._event_handler_impl.fireEvent(Object,T)
id: fireEvent(Object,T)
parent: com.microsoft.cognitiveservices.speech.util._event_handler_impl
href: com.microsoft.cognitiveservices.speech.util._event_handler_impl.yml
langs:
- java
name: fireEvent(Object sender, T e)
nameWithType: EventHandlerImpl<T>.fireEvent(Object sender, T e)
fullName: com.microsoft.cognitiveservices.speech.util.EventHandlerImpl<T>.fireEvent(Object sender, T e)
overload: com.microsoft.cognitiveservices.speech.util._event_handler_impl.fireEvent*
type: Method
source:
remote: *o0
path: source/bindings/java/com/microsoft/cognitiveservices/speech/util/EventHandlerImpl.java
startLine: 35
package: com.microsoft.cognitiveservices.speech.util
summary: <p>Fires an event by calling sequentially all registered handlers. </p>
syntax:
content: public void fireEvent(Object sender, T e)
parameters:
- id: sender
type: "79317049"
description: <p>The origin of the event. </p>
- id: e
type: 8ce1ecb9
description: <p>The event. </p>
- uid: com.microsoft.cognitiveservices.speech.util._event_handler_impl.removeEventListener(EventHandler<T>)
id: removeEventListener(EventHandler<T>)
parent: com.microsoft.cognitiveservices.speech.util._event_handler_impl
href: com.microsoft.cognitiveservices.speech.util._event_handler_impl.yml
langs:
- java
name: removeEventListener(EventHandler<T> handler)
nameWithType: EventHandlerImpl<T>.removeEventListener(EventHandler<T> handler)
fullName: com.microsoft.cognitiveservices.speech.util.EventHandlerImpl<T>.removeEventListener(EventHandler<T> handler)
overload: com.microsoft.cognitiveservices.speech.util._event_handler_impl.removeEventListener*
type: Method
source:
remote: *o0
path: source/bindings/java/com/microsoft/cognitiveservices/speech/util/EventHandlerImpl.java
startLine: 25
package: com.microsoft.cognitiveservices.speech.util
summary: <p>Unregisters the event handler from the associated event. </p>
syntax:
content: public void removeEventListener(EventHandler<T> handler)
parameters:
- id: handler
type: com.microsoft.cognitiveservices.speech.util._event_handler669339f7
description: <p>The handler. </p>
references:
- uid: 8ce1ecb9
spec.java:
- name: T
fullName: T
- uid: com.microsoft.cognitiveservices.speech.util._event_handler669339f7
spec.java:
- uid: com.microsoft.cognitiveservices.speech.util._event_handler
name: EventHandler
fullName: com.microsoft.cognitiveservices.speech.util.EventHandler
href: com.microsoft.cognitiveservices.speech.util._event_handler.yml
- name: <T>
fullName: <T>
- uid: com.microsoft.cognitiveservices.speech.util._event_handler_impl.addEventListener*
name: addEventListener
nameWithType: EventHandlerImpl<T>.addEventListener
fullName: com.microsoft.cognitiveservices.speech.util.EventHandlerImpl<T>.addEventListener
package: com.microsoft.cognitiveservices.speech.util
- uid: com.microsoft.cognitiveservices.speech.util._event_handler_impl.removeEventListener*
name: removeEventListener
nameWithType: EventHandlerImpl<T>.removeEventListener
fullName: com.microsoft.cognitiveservices.speech.util.EventHandlerImpl<T>.removeEventListener
package: com.microsoft.cognitiveservices.speech.util
- uid: "79317049"
spec.java:
- name: Object
fullName: Object
- uid: com.microsoft.cognitiveservices.speech.util._event_handler_impl.fireEvent*
name: fireEvent
nameWithType: EventHandlerImpl<T>.fireEvent
fullName: com.microsoft.cognitiveservices.speech.util.EventHandlerImpl<T>.fireEvent
package: com.microsoft.cognitiveservices.speech.util
- uid: com.microsoft.cognitiveservices.speech.util._event_handler
parent: com.microsoft.cognitiveservices.speech.util
href: com.microsoft.cognitiveservices.speech.util._event_handler.yml
name: EventHandler<T>
nameWithType: EventHandler<T>
fullName: com.microsoft.cognitiveservices.speech.util.EventHandler<T>
type: Interface
summary: <p>The EventHandler interface used for all recognition events. </p>
syntax:
content: public interface EventHandler<T>
typeParameters:
- id: T
type: 8ce1ecb9