Partager via


VoiceCommandServiceConnection.VoiceCommandCompleted Événement

Définition

Événement déclenché lorsque la commande vocale est terminée et que le service d’application en arrière-plan est sur le point d’être arrêté.

// 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) 

Type d'événement

S’applique à

Voir aussi