public async Task GoBackToMainPageExecute() { await RunTaskAsync(async() => { await VoiceInterface.StopListening(); await VoiceInterface.SayGoodBye(); Messenger.Default.Unregister(this); NavigationService.NavigateTo(ViewModelLocator.MainPage); }); }
// Navigation actions private async Task GoBackToMainExecute() { // Cleans up services and messenger await VoiceInterface.StopListening(); await VoiceInterface.SayGoodBye(); Messenger.Default.Unregister(this); NavigationService.NavigateTo(ViewModelLocator.MainPage); }