共用方式為


VoiceCommandServiceConnection.VoiceCommandCompleted 事件

定義

當語音命令完成且背景 App Service 即將終止時引發的事件。

// Register
event_token VoiceCommandCompleted(TypedEventHandler<VoiceCommandServiceConnection, VoiceCommandCompletedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
VoiceCommandServiceConnection::VoiceCommandCompleted_revoker VoiceCommandCompleted(auto_revoke_t, TypedEventHandler<VoiceCommandServiceConnection, VoiceCommandCompletedEventArgs const&> const& handler) const;
public event TypedEventHandler<VoiceCommandServiceConnection,VoiceCommandCompletedEventArgs> VoiceCommandCompleted;
function onVoiceCommandCompleted(eventArgs) { /* Your code */ }
voiceCommandServiceConnection.addEventListener("voicecommandcompleted", onVoiceCommandCompleted);
voiceCommandServiceConnection.removeEventListener("voicecommandcompleted", onVoiceCommandCompleted);
- or -
voiceCommandServiceConnection.onvoicecommandcompleted = onVoiceCommandCompleted;
Public Custom Event VoiceCommandCompleted As TypedEventHandler(Of VoiceCommandServiceConnection, VoiceCommandCompletedEventArgs) 

事件類型

適用於

另請參閱