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); }
void StartVoiceTrigger() { var option = new VoiceInteractor.PickOptionRequest.Option("Cheese", 1); option.AddSynonym("ready"); option.AddSynonym("go"); option.AddSynonym("take it"); option.AddSynonym("ok"); var prompt = new VoiceInteractor.Prompt("Say Cheese"); Activity.VoiceInteractor.SubmitRequest(new ChoiceRequest(this, prompt, new [] { option })); }
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); }
public ChoiceRequest(CameraFragment frag, VoiceInteractor.Prompt prompt, Option[] choices) : base(prompt, choices, null) { this.frag = frag; }
void StartVoiceTrigger() { var option = new VoiceInteractor.PickOptionRequest.Option("Cheese", 1); option.AddSynonym("ready"); option.AddSynonym("go"); option.AddSynonym("take it"); option.AddSynonym("ok"); var prompt = new VoiceInteractor.Prompt("Say Cheese"); Activity.VoiceInteractor.SubmitRequest(new ChoiceRequest(this, prompt, new []{ option })); }
public CameraChoiceRequest(VoiceInteractor.Prompt prompt, Option[] choices, View[] views) : base(prompt, choices, null) { this.views = views; }
public ConfirmTaxiRequest(VoiceInteractor.Prompt prompt) : base(prompt, null) { }