Пример #1
0
        private void OnResuming(object sender, object args)
        {
            // Restore any data or state that was unloaded on suspend. By default, data
            // and state are persisted when resuming from suspend. Note that this event
            // does not occur if the app was previously terminated.

            if (null != main)
            {
                main.LoadAppState();
            }

            Task.Run(async() =>
            {
                await InitializeRecognizer(SpeechRecognizer.SystemSpeechLanguage);
                await speechRecognizer.ContinuousRecognitionSession.StartAsync();
            });
        }