ConversationalAgentSession.SessionInterrupted Событие

Определение

Происходит при обнаружении другого цифрового сигнала активации помощник.

// Register
event_token SessionInterrupted(TypedEventHandler<ConversationalAgentSession, ConversationalAgentSessionInterruptedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ConversationalAgentSession::SessionInterrupted_revoker SessionInterrupted(auto_revoke_t, TypedEventHandler<ConversationalAgentSession, ConversationalAgentSessionInterruptedEventArgs const&> const& handler) const;
public event TypedEventHandler<ConversationalAgentSession,ConversationalAgentSessionInterruptedEventArgs> SessionInterrupted;
function onSessionInterrupted(eventArgs) { /* Your code */ }
conversationalAgentSession.addEventListener("sessioninterrupted", onSessionInterrupted);
conversationalAgentSession.removeEventListener("sessioninterrupted", onSessionInterrupted);
- or -
conversationalAgentSession.onsessioninterrupted = onSessionInterrupted;
Public Custom Event SessionInterrupted As TypedEventHandler(Of ConversationalAgentSession, ConversationalAgentSessionInterruptedEventArgs) 

Тип события

Комментарии

Некоторые сеансы цифрового помощник не могут быть прерваны другим сигналом. Например, Кортана требует, чтобы пользователь выдал команду отмены или остановки для завершения текущего сеанса (пользователь не может находиться в сеансе Кортаны и выдавать команды в Alexa).

Если сеанс может быть прерван, платформа агента бесед Windows вызывает событие SessionInterrupted, чтобы указать, что приложение цифрового помощник должно настроить неактивное и прекратить обработку входных данных.

Применяется к

См. также раздел