ConversationalAgentSession.SignalDetected 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
// 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)
事件類型
備註
啟用訊號 的 範例可能包括關鍵詞語句、藍牙傳輸、系統鍵盤加速器、應用程式內語音辨識或其他音效 (門燈、氣氣偵測器) 。