protected override void OnResume() { base.OnResume(); if (!IsVoiceInteraction) { return; } //Send our our first request asking for front or rear facing camera to use. var front = new VoiceInteractor.PickOptionRequest.Option("Front Camera", 0); front.AddSynonym("Front"); front.AddSynonym("Selfie"); front.AddSynonym("Forward"); var rear = new VoiceInteractor.PickOptionRequest.Option("Rear Camera", 1); rear.AddSynonym("Rear"); rear.AddSynonym("Back"); rear.AddSynonym("Normal"); var prompt = new VoiceInteractor.Prompt("Which camera would you like to use?"); request = new CameraChoiceRequest(prompt, new [] { front, rear }, new [] { buttonFront, buttonRear }); VoiceInteractor.SubmitRequest(request); }
protected override void OnResume() { base.OnResume(); if (!IsVoiceInteraction) return; //Send our our first request asking for front or rear facing camera to use. var front = new VoiceInteractor.PickOptionRequest.Option("Front Camera", 0); front.AddSynonym("Front"); front.AddSynonym("Selfie"); front.AddSynonym("Forward"); var rear = new VoiceInteractor.PickOptionRequest.Option("Rear Camera", 1); rear.AddSynonym("Rear"); rear.AddSynonym("Back"); rear.AddSynonym("Normal"); var prompt = new VoiceInteractor.Prompt("Which camera would you like to use?"); request = new CameraChoiceRequest(prompt, new [] { front, rear }, new [] {buttonFront, buttonRear}); VoiceInteractor.SubmitRequest(request); }