Share via


ConversationalAgentSession.SignalDetected Event

Definition

Occurs when a Signal for activating a digital assistant is detected.

// Register
event_token SignalDetected(TypedEventHandler<ConversationalAgentSession, ConversationalAgentSignalDetectedEventArgs const&> const& handler) const;

// Revoke with event_token
void SignalDetected(event_token const* cookie) const;

// Revoke with event_revoker
ConversationalAgentSession::SignalDetected_revoker SignalDetected(auto_revoke_t, TypedEventHandler<ConversationalAgentSession, ConversationalAgentSignalDetectedEventArgs const&> const& handler) const;
public event TypedEventHandler<ConversationalAgentSession,ConversationalAgentSignalDetectedEventArgs> SignalDetected;
function onSignalDetected(eventArgs) { /* Your code */ }
conversationalAgentSession.addEventListener("signaldetected", onSignalDetected);
conversationalAgentSession.removeEventListener("signaldetected", onSignalDetected);
- or -
conversationalAgentSession.onsignaldetected = onSignalDetected;
Public Custom Event SignalDetected As TypedEventHandler(Of ConversationalAgentSession, ConversationalAgentSignalDetectedEventArgs) 

Event Type

Remarks

Examples of activation Signals can include a keyword utterance, Bluetooth transmission, system keyboard accelerator, in-app speech recognition, or other sounds (door slam, smoke detector).

Applies to

See also